-
Notifications
You must be signed in to change notification settings - Fork 776
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aternos.org: detection #13144
Comments
Currently it's not possible to terminate the detection. Also if you mean pressing the button automatically, you might need to do with a userscript as uBO has not implemented adding vanilla script yet. |
Also if the overlay get blocked the complete body get removed |
Could someone take a look at the cosmetic filtering? |
the site detects when the element in the top and side bar containing the exaroton ads is modified. Something else also breaks it but I can't tell what since I can't tell what the difference is in the logger |
https://hakorr.github.io/Userscripts/Aternos/AntiAntiAdblock/course/ gives a whole page how aternos detection works. At the buttom of the page he gives a link to https://hakorr.github.io/Userscripts/Aternos/AntiAntiAdblock giving you a userscript for it. It worked for me and I hope that for other people using aternos who are willing to use userscripts it works too |
Those work but only for Firefox
However they can't work on Chromium-based browsers (at least for now) as stated @ https://github.com/gorhill/uBlock/wiki/Inline-script-tag-filtering
|
in the last uBO for chrome you can test
|
There we go then :)
just tested it and it's blocking the ads on their site perfectly I can make a PR for this, not sure which category it's supposed to go with though |
Its unstable and doesn’t work, i just get a blank screen. |
To make it a bit more stable, we can probably change how I hardcoded the exact variable names and make it look for the prefix
If anything else causes any sort of instability then it might be because And as for the blank screen, I am not getting any blank screens here, maybe it's caused as a result of interference with another filter(s)? |
The inline scripts need to be executed or the start button and other buttons like the logout button stops working. I tried filter like
But the start button is still broken. |
@JobcenterTycoon what about
|
Same result. |
When I came up with the filters in my above comment it worked, looks like they made a change to how their button clicks work (probably made it a part of their anti adblock) Can we change the value returned by a JavaScript function on a site using uBlock? If that's possible I will proceed with updating my filters to reverse their patch UPDATE: I got it. Try:
|
Okey, the filter you posted doesn’t work for me because i still get anti adblock but based on it i have working filter now:
Logout? Working. Can you confirm? |
Both my filters and yours work for me. You can also completely remove their Exaroton banner using
|
Sure. The final filter (counters also old exception filter): filter
Edit: The filter are obsolete |
Hello! I have the same issue with aternos, and the above filter did not work for me... I just get a blank white screen. Browser: MS Edge |
Is it possible to only have cosmetic filtering as a temporary fix? |
This comment was marked as off-topic.
This comment was marked as off-topic.
As of a couple days ago, Aternos' anti-adblock annoyances are no longer solved by activating "Block large media elements on this site." Also, there are new "ads" hard-coded to appear, all for the same product. As for the annoyance, its still the same big red screen "please don't use an adblocker" then you have to push a button to continue and wait 3 seconds. It's quite frustrating, but Aternos runs so many ad's its better to deal with that screen than all their ads. |
this tampermonkey script works. The buttons work too. You will still need to use ublock origin to block the ads this just blocks the annoying big red screen that says it detects adblock Userscript// Userscript created with https://hakorr.github.io/Userscripts/Aternos/AntiAntiAdblock/
// ==UserScript==
// @name [Aternos] AntiAntiAdblock
// @namespace none
// @match https://aternos.org/*
// @grant none
// @version 1.0
// @author HKR
// @description Removes all the adblock reminders.
// @require https://greasyfork.org/scripts/21927-arrive-js/code/arrivejs.js
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.js
// @run-at document-start
// ==/UserScript==
// @run-at document-start
(() => {
'use strict';
const observerCallback = (mutationsList) => {
for (let mutationRecord of mutationsList) {
for (let node of mutationRecord.addedNodes) {
if (node.tagName !== 'SCRIPT') continue;
/* Example keywords:
- 'data:text/javascript;base64
- 'base64'
- 'jquery' */
if (node.src.includes('data:text/javascript;base64')
|| node.outerHTML.includes('data:text/javascript;base64')
|| node.innerHTML.includes('data:text/javascript;base64')) {
// Remove the element
node.remove();
}
};
};
};
const mutObvsr = new MutationObserver(observerCallback);
mutObvsr.observe(document, { childList: true, subtree: true });
})();
function removeLayer() {
Array.from(document.querySelectorAll("[style]")).forEach(elem => {
//Change the top: 0 to some attribute the fullscreen red Anti-Adblock has, then it works
if(elem.getAttribute("style").includes("top: 0")) {
//What to do with the element, feel free to modify
elem.innerHTML = "";
elem.style += "display: none";
}
});
}
window.onload = function() { removeLayer() }
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.js
$(document).ready(function () {
//Added from the "Continue with adblocker anyway" button's function
$(".body, .header").each(function () {
this.style.setProperty("display", "");
this.style.setProperty("height", "");
});
//Added from the "Continue with adblocker anyway" button's function
$("#start").each(function () {
this._ready = true;
});
$("#userdropdown-toggle").click(function (e) {
if ($(window).width() <= 1e3) {
e.preventDefault();
$(".userdropdown").slideToggle(100);
}
});
$(".logout").click(function () {
aget("/panel/ajax/account/logout.php", function () {
location.href = "/go/";
});
});
$(".navigation-toggle").click(function () {
var cookieValue = 0;
if ($(".navigation").hasClass("toggled")) {
$(".navigation").removeClass("toggled");
} else {
$(".navigation").addClass("toggled");
cookieValue = 1;
}
document.cookie = COOKIE_PREFIX + "_NAVIGATION_TOGGLED=" + cookieValue + ";path=/;max-age=31536000";
});
$(".friend-access-count-dropdown").click(function () {
var dropdown = $(".friend-access-dropdown");
if (dropdown.css("display") === "none") {
dropdown.slideDown(100);
$(".friend-access-count-dropdown i").fa("fas", "fa-caret-up");
} else {
dropdown.slideUp(100);
$(".friend-access-count-dropdown i").fa("fas", "fa-caret-down");
}
});
$(".js-friends-access").click(friendAccess);
$(".js-friends-leave").click(friendLeave);
$(".hamburger").click(function () {
if ($(".navigation").css("left") == "-200px") {
$(".navigation").animate({left: "0px"});
} else {
$(".navigation").animate({left: "-200px"});
}
});
}); |
Everything is working fine on my end. Great job! |
I copied the script into tampermonkey and have ublock origin but when I use aternos, it doesn't do anything when I press the start server button. Did I mess up somewhere? or did aternos just cuck the tampermonkey script 2 weeks into it being made? |
Looks like aternos changed the way their start button functions I can't check rn I'm busy sorry 😕 |
Hey i recently found out that DvilMuck is actively developing a userscript to bypass Aternos' antiadblock detection. The code is obfuscated to prevent patches so please use at your own risk but im like 99% sure its safe https://gist.github.com/DvilMuck/f2b14f3f65e8f22974d781277158f82a |
If you disable Cosmetic Filtering, the AntiAdblock won't get triggered. If you then combine it with this userstyle I made then it will look identical to a full adblock :] |
Hey, can someone add "can't fix" label to this? |
I get no anti adblock |
@055110 If you are using Librewolf, it sets uBO's default settings different to uBO's itself, and Librewolf also enables "Enhanced Tracking Protection" in Strict mode by default. Test again in a new Firefox' profile with uBO's default settings. Remember to update the filter lists before testing. |
I didn't want to bother installing Firefox again, so I just loaded a virtual browser using https://browser.lol. I installed the uBO, logged into my account and it worked! The only issue was that the server tutorial leftover was still there, but other than that it works. I don't know how to fix it on Librewolf. The image won't embed for some reason. :/ |
Now that I think about it, there needs to be a "fixable with userscript" label. |
Works fine for me but when i close such issues the devs freaking out again. |
Still blocks. I tried resetting to defaults |
I believe this issue should be closed and labeled as |
@stephenhawk8054
In this case, by blocking the element below (in the right area of the image), aternos detects the adblock. But if this element is not blocked, the "message in red" does not appear. |
So is the solution just not blocking the sidebar? That sounds too easy. |
Yes, that was the case a few days ago. If that element wasn't blocked, their anti-adblock wouldn't detect it. Unfortunately now it doesn't work anymore, they must have fixed that. However, this proves a few things to me:
I wish I could contribute more or in some way, but unfortunately I can't afford it these days, either in monetary terms or in code contributions. I just hope we can win “this war”, because if not, it will be impossible to use the Internet in the future, and I'm not just talking about Aternos... |
That's fair, but if it makes you feel better, the Devilmuck userscript solution does work still, seems to update it enough for any changes Alternos makes. For the bait element, yeah that's pretty much how most of these work, the only relief part I get is that most of these bait things don't actually show any ads, so a really dumb solution would just be stripping the adblocker down which is kinda funny. Not worth my time though since the user scripts works. For a time I was able to get away with using a anti paywall extension to do it too, they seemed to have fixed that one not too long ago. Its also funny because Alternos spamming so many ads that it physically lags my computer is the only reason I'm doing this in the first place, if they just had like a calm down mode I wouldn't go through this length to bypass it and I would stand a few ads. Still think this issue should be closed and listed as "userscript" or something like that, its not like Ublock orgin is gonna add the future to change websites code enough to make a bypass anymore, and alternos can use really any blocked ad site as bait. |
Yes, that's my problem with advertising too. There's so much advertising spam on the site that you can't use it without waiting a long time for the browser to respond. There are also too many advertising-related elements spread across the different pages that the only space that matters for connecting to the server or accessing the different areas is absurdly small and disproportionate. Using adblock is like being able to breathe fresh air again after months of being “confined to the same space” I liked it when things were simpler and not a mishmash of information that 90% of me doesn't use, doesn't matter, only slows down the loading speed and is literally visual pollution. The more crap like this is added to the site, the more the end user is likely to use adblockers or even stop using the site. |
Prerequisites
I tried to reproduce the issue when...
URL(s) where the issue occurs
https://aternos.org/server
Describe the issue
See #12987 #12895 #12314 #12299 and others. aternos.org is still detecting adblockers and showing a "you are using an adblocker screen". The screen only shows after around 500ms (estimate) from page load and the normal page content can be seen before it shows.
Screenshot(s)
No response
Notes
Digging through it seems that the
script
tag with a base64 url is the culprit. I've tried blocking it with acs scriptlet but I don't really know how it works. The script tag is the last script tag when I view source.I also found that it uses MutationObserver in order to check for detection bypass. I think somehow breaking MutationObserver functionality with prototype pollution may work, however, I do not know how to accomplish that with uBO. Alternatively, the
Continue with adblocker anyway
button could perhaps be pressed and time somehow sped up? It checksDate.now()
withsetInterval
every 200 ms, which could be a way to break it.Configuration
The text was updated successfully, but these errors were encountered: