This wiki has been permanently archived. As such, editing and registration have been closed.

Aternos Cock Blocker

From CollabVM Wiki, the horrible, autism-inducing, trash filled wiki, featuring people who can't speak English
Jump to navigation Jump to search
// ==UserScript==
// @name         cock blocker
// @namespace    https://computernewb.com/
// @version      2.1
// @description  KILLS almost ALL ADS ON ATERNOs. DO NOT USE WITH ANOTHER AD BLOCKER OR ELSE IT WILL be useless as you'll get the "YOU ARE USING AN AD BLOCKER GRRRR" screen
// @author       computernewb (specifically .cab file and mv)
// @match        https://aternos.org/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=aternos.org
// @grant        none
// ==/UserScript==

var elements = [document.getElementsByClassName("responsive-sky-scraper")[0], // Remove the right sidebar (almost entirely, however here we only remove the ad part of it (in case aternos add something new to the sidebar))
				document.getElementsByClassName("server-b-tutorials")[0], // Comment this line to disable removing the tutorials thing (i added it because its useless for me (cab) and most likely anyone else)
                document.getElementsByClassName("ad-dfp")[0], // Ad at the top
                document.getElementsByClassName("ad-dfp")[1], // Ad at the bottom
                document.getElementsByClassName("header-exaroton-link")[0] // Exaroton ad (Epic Fail!)
               ];

elements.forEach((e) => { // Iterate...
    try { e.remove() } catch(e) {} // DIE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1
});
var tiemz = 0, fuckoff = setInterval(() => {
	tiemz++;
    try {
        document.getElementById("adngin-Leaderboard_Adhesion-0-adhesive").remove(); // Remove ad at the bottom of the screen
    } catch(e) {}
    if(tiemz == 5) clearInterval(fuckoff); // change the 5 to a lower value if you (somehow) experience performance issues and to a higher value if it doesn't remove it
},500); // Same as above but reversed, but be aware you may see it for a few hundred milliseconds (a hundred of them is 1/10 of a second, in case you're dumb to not know that)
// ^ Shitty method but it werkz and doesn't actually seems to affect performance

// to install this you need to install tampermonkey or similar then create a new script and copy ze cock blocker's contents into the new script and Tada!!!!!!!!!!!!!!!!!!!! it works
// and yes i know it contains shit code cry about it
// currently the only known problem is that sometimes ads appear when you click on a link, however that might be solved by blocking the thing that makes that happen (while also avoiding the "YOU ARE USING AN AD BLOCKER GRRRRRRRRRRRRRRRRRRRRRRRRR" screen)