您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Great minecraft hosting, but it has adblocker detection, this script automatically destroy antiadblock windows. I would prefer to show a donate button instead of forcing Ads. Script tested with Tapermonkey, Chrome 76.
- // ==UserScript==
- // @name Aternos Minecraft Server Hosting ADBLOCKER
- // @namespace https://aternos.org/*
- // @version 0.2
- // @description Great minecraft hosting, but it has adblocker detection, this script automatically destroy antiadblock windows. I would prefer to show a donate button instead of forcing Ads. Script tested with Tapermonkey, Chrome 76.
- // @author You
- // @include https://aternos.org/*
- // @grant none
- // ==/UserScript==
- (function() {
- // Your code here...
- let tries = 50
- setTimeout(doClear,20);
- function doClear(){
- document.querySelectorAll('[style="display: none;"]').forEach(e => {e.style.display = ""})
- document.querySelectorAll(".ad-replacement").forEach(e => {e.parentElement.style.display = "none"})
- document.querySelector('.fas.fa-ban').parentElement.parentElement.parentElement.parentElement.style.display ="none";
- if(tries-- > 0){
- setTimeout(doClear,10);
- }
- }
- document.querySelector(" div > div > div:nth-child(2) > div:nth-child(3) > div.btn.btn-white").click();
- })();