Disable the Anti-Adblock on Aternos.org to use it without Ads. (This script is to be used along with Ublock Origin)
Size
1.4 KB
Version
2.2
Created
Apr 1, 2026
Updated
14 days ago
1// ==UserScript==
2// @name [WORKING 2025] Disable Aternos Anti-Adblock
3// @homepageURL https://discord.gg/wufkp8Q5wu
4// @description Disable the Anti-Adblock on Aternos.org to use it without Ads. (This script is to be used along with Ublock Origin)
5// @author ascended1013 (https://discord.com/users/1287316126535258136)
6
7// @match https://aternos.org/*
8
9// @version 2.2
10// @run-at document-start
11// @grant unsafeWindow
12
13// @license MIT
14// @supportURL https://discord.gg/wufkp8Q5wu
15// @icon https://files.catbox.moe/5hnfoq.png
16// @namespace https://greasyfork.org/users/1237543
17// @downloadURL https://update.greasyfork.org/scripts/521704/%5BWORKING%202025%5D%20Disable%20Aternos%20Anti-Adblock.user.js
18// @updateURL https://update.greasyfork.org/scripts/521704/%5BWORKING%202025%5D%20Disable%20Aternos%20Anti-Adblock.meta.js
19// ==/UserScript==
20
21let r = unsafeWindow.Array.prototype.push;
22unsafeWindow.Array.prototype.push = function(...t) {
23 try {
24 throw new Error
25 } catch (e) {
26 if (e.stack.includes("data:text/javascript")) throw new Error;
27 return r.apply(this, t)
28 }
29};
30let t = unsafeWindow.Proxy;
31unsafeWindow.Proxy = function(r, e) {
32 try {
33 JSON.stringify(r) == '{}' && (e.get = () => () => !0)
34 } catch (r) {}
35 return new t(r, e)
36}
37setInterval((() => {
38 Array.from(document.querySelectorAll("*")).filter((r => r.style.zIndex)).forEach((r => r.remove()))
39}), 100);