Forked from DvilMuck/aternosAntiAntiadblock.user.js
Created
November 20, 2022 06:50
-
-
Save dannythehacker/17f3c69ec0a52cd21889af00e439d577 to your computer and use it in GitHub Desktop.
Aternos Anti Anti Adblock userscript for Aternos.org
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Aternos Anti Anti-adblock | |
| // @namespace r0630hh1edcuum5397kimyc0ucwy2h3psn4c6r1u4j | |
| // @version 0.1.9 | |
| // @description Fuck anti-adblock from the free hosting minecraft servers Aternos.org. Parry this you filthy casual! | |
| // @author Angry Developer against excessive ADs | |
| // @source https://gist.github.com/DvilMuck/f2b14f3f65e8f22974d781277158f82a | |
| // @supportURL https://gist.github.com/DvilMuck/f2b14f3f65e8f22974d781277158f82a | |
| // @updateURL https://gist.github.com/DvilMuck/f2b14f3f65e8f22974d781277158f82a/raw/aternosAntiAntiadblock.user.js | |
| // @downloadURL https://gist.github.com/DvilMuck/f2b14f3f65e8f22974d781277158f82a/raw/aternosAntiAntiadblock.user.js | |
| // @match *://aternos.org/* | |
| // @icon https://aternos.org/favicon.ico | |
| // @require https://greasemonkey.github.io/gm4-polyfill/gm4-polyfill.js | |
| // @grant GM_addStyle | |
| // @grant GM.addStyle | |
| // @run-at document-start | |
| // @noframes | |
| // ==/UserScript== | |
| // Sorry for the obfuscated version | |
| /* Changelog | |
| * Fixed restored elements being removed | |
| */ | |
| 'use strict';const d7=u;(function(d,D){const dw={d:0x136,D:0x125,v:0x12d,h:0x187,B:0x15b,R:0x112},x=u,v=d();while(!![]){try{const h=parseInt(x(dw.d))/(0x1ab+-0x1665+-0x3*-0x6e9)+parseInt(x(dw.D))/(0x93*-0x1d+-0x104+0x11ad)*(parseInt(x(0x111))/(0x1*-0x1e5d+-0x21d0+-0x1*-0x4030))+parseInt(x(dw.v))/(-0x1a29+0x89*-0x31+-0x2c2*-0x13)+-parseInt(x(dw.h))/(0x2*-0x161+0x160e+-0x1347)*(parseInt(x(0x124))/(0x5*-0x676+0x9e1+0x1*0x1673))+parseInt(x(0xdf))/(-0x4c1*0x3+-0x1969+0x27b3)+parseInt(x(0xf6))/(0x233*0xd+-0x13ff+-0x890)*(parseInt(x(dw.B))/(0x14*-0x1f3+0x14c*0x2+0x246d))+parseInt(x(dw.R))/(0x8*-0x3d8+-0x263b+0x4505)*(-parseInt(x(0xe8))/(-0x88c+-0x1049*-0x1+-0x7b2));if(h===D)break;else v['push'](v['shift']());}catch(B){v['push'](v['shift']());}}}(X,-0x76cf3+-0x2*0x7ae52+-0xe6f4*-0x23));let j=null,F=null,e=[],f=![];function u(d,D){const v=X();return u=function(h,B){h=h-(0x87d+-0x22a3+0x1b05);let R=v[h];return R;},u(d,D);}function i(D){const da={d:0x16d,D:0x113,v:0x13e,h:0x157},J=u,v={};v[J(0x11c)]=function(Y,C){return Y!==C;},v[J(0x157)]=J(da.d),v[J(da.D)]=function(Y,C){return Y<=C;};const h=v;let B=0x1*0x824+0x14*-0x86+0x272,R=D,n=R[J(da.v)+J(0x167)];while(!n['\x69\x64']){if(h[J(0x11c)](h[J(da.h)],h[J(0x157)])){D['\x64\x69\x73\x63\x6f\x6e\x6e\x65\x63\x74']();return;}else{if(h[J(0x113)](B,-0x13*0x1f3+0x16*-0x119+0x3d2f))break;B--,R=n,n=n[J(0x13e)+J(0x167)];}}return n;}function E(d){'use strict';const dg={d:0x109,D:0x148,v:0x170,h:0x151,B:0x167,R:0xe5,n:0x121,Y:0x160},H=u,D={'\x71\x76\x68\x52\x57':function(v,h){return v(h);},'\x51\x6b\x77\x72\x4c':H(dg.d),'\x78\x75\x56\x45\x59':H(0x103)};if(typeof GM_addStyle===H(0x172))D[H(0x11b)](GM_addStyle,d);else{const v=document[H(dg.D)+H(dg.v)](H(dg.h))[0x6fe+0x1ab6+0x6*-0x59e];if(v){const h=document[H(0x11e)+H(dg.B)](H(0x138));h[H(dg.R)+'\x74\x65'](D[H(0x143)],D[H(0x16a)]),h[H(dg.n)+'\x74']=d,v[H(dg.Y)+'\x64'](h);}}}function Z(D=![]){const dU={d:0x138,D:0xe9,v:0xef,h:0x104,B:0x176},d0=u,v={'\x46\x4a\x4e\x45\x75':function(R,n){return R===n;},'\x74\x55\x51\x6b\x53':d0(dU.d),'\x53\x48\x71\x77\x6f':function(R){return R();},'\x53\x74\x77\x72\x4c':function(R,n){return R&&n;},'\x45\x6c\x6b\x5a\x66':d0(dU.D)};if(v[d0(0x17f)](D,j)){j['\x64\x69\x73\x63\x6f\x6e\x6e\x65\x63\x74']();return;}const h=document[d0(0x155)+d0(dU.v)](v[d0(0x177)]);j=new MutationObserver(R=>{const ds={d:0x141},d3=d0,n={'\x76\x77\x4a\x58\x48':function(Y,C){const d1=u;return v[d1(0xe2)](Y,C);},'\x76\x53\x72\x64\x57':v['\x74\x55\x51\x6b\x53'],'\x79\x4b\x61\x47\x45':function(Y){const d2=u;return v[d2(ds.d)](Y);}};R[d3(0x106)](Y=>{const d4=d3;n[d4(0x129)](Y[d4(0x16f)+'\x61\x6d\x65'],n[d4(0x165)])&&N()&&n['\x79\x4b\x61\x47\x45'](M);});});const B={};B[d0(dU.h)]=![],B[d0(0x123)]=![],B[d0(0x166)+d0(0x169)]=![],B[d0(dU.B)]=!![],B['\x61\x74\x74\x72\x69\x62\x75\x74\x65\x46'+d0(0x173)]=[v['\x74\x55\x51\x6b\x53']],j['\x6f\x62\x73\x65\x72\x76\x65'](h,B);}function X(){const Dp=['\x45\x74\x46\x72\x6f','\x4d\x78\x53\x53\x6f','\x39\x31\x31\x34\x39\x30\x34\x48\x42\x55\x58\x5a\x57','\x72\x61\x6e\x64\x6f\x6d','\x72\x65\x74\x75\x72\x6e\x20\x28\x66\x75','\x58\x74\x55\x43\x73','\x6c\x61\x79\x3a\x20\x66\x6c\x65\x78\x20','\x41\x7a\x51\x4b\x43','\x69\x62\x6c\x65\x20\x21\x69\x6d\x70\x6f','\x66\x4a\x6a\x66\x63','\x0a\x09\x23','\x7a\x2d\x69\x6e\x64\x65\x78\x3a\x20\x61','\x6c\x6f\x67','\x68\x56\x54\x51\x65','\x65\x76\x65\x72\x79','\x74\x65\x78\x74\x2f\x63\x73\x73','\x63\x68\x69\x6c\x64\x4c\x69\x73\x74','\x61\x64\x64\x45\x76\x65\x6e\x74\x4c\x69','\x66\x6f\x72\x45\x61\x63\x68','\x42\x79\x67\x4d\x79','\x73\x74\x65\x6e\x65\x72','\x74\x79\x70\x65','\x71\x4e\x78\x68\x62','\x49\x6f\x67\x77\x72','\x30\x30\x33\x34\x37\x34\x38\x30\x39\x32','\x50\x69\x65\x63\x44','\x69\x6b\x50\x72\x48','\x6c\x65\x6e\x67\x74\x68','\x63\x68\x61\x6e\x67\x65','\x31\x31\x37\x33\x6f\x41\x6b\x72\x70\x67','\x33\x30\x76\x57\x6f\x5a\x64\x59','\x72\x6f\x49\x75\x49','\x64\x69\x73\x70\x6c\x61\x79\x3a\x20\x6e','\x7a\x45\x79\x4f\x67','\x44\x72\x59\x6d\x71','\x70\x75\x73\x68','\x63\x69\x74\x49\x65','\x64\x69\x76','\x72\x65\x61\x64\x79\x53\x74\x61\x74\x65','\x71\x76\x68\x52\x57','\x56\x7a\x74\x73\x57','\x47\x50\x68\x50\x47','\x63\x72\x65\x61\x74\x65\x45\x6c\x65\x6d','\x47\x6f\x4e\x71\x50','\x63\x6c\x61\x73\x73\x4e\x61\x6d\x65','\x74\x65\x78\x74\x43\x6f\x6e\x74\x65\x6e','\x64\x59\x76\x4f\x6d','\x73\x75\x62\x74\x72\x65\x65','\x36\x34\x31\x34\x47\x78\x65\x4f\x4a\x62','\x33\x37\x39\x34\x52\x72\x79\x77\x4f\x63','\x69\x6e\x66\x6f','\x62\x69\x6e\x64','\x4c\x71\x71\x51\x6a','\x76\x77\x4a\x58\x48','\x68\x65\x69\x67\x68\x74','\x21\x69\x6d\x70\x6f\x72\x74\x61\x6e\x74','\x6f\x76\x65\x72\x66\x6c\x6f\x77','\x31\x36\x39\x33\x38\x38\x30\x6a\x61\x6a\x70\x6b\x4b','\x54\x65\x56\x42\x51','\x61\x70\x70\x6c\x79','\x70\x76\x42\x71\x53','\x59\x77\x5a\x49\x44','\x63\x4d\x63\x5a\x64','\x73\x75\x62\x73\x74\x72\x69\x6e\x67','\x69\x6e\x63\x6c\x75\x64\x65\x73','\x53\x43\x52\x49\x50\x54','\x33\x39\x35\x30\x32\x32\x4f\x74\x4b\x66\x53\x4f','\x6f\x70\x61\x63\x69\x74\x79','\x73\x74\x79\x6c\x65','\x77\x6f\x49\x56\x6c','\x4f\x62\x44\x77\x63','\x72\x74\x69\x63\x6c\x65\x73\x2f\x33\x36','\x72\x6e\x20\x74\x68\x69\x73\x22\x29\x28','\x55\x6e\x67\x43\x54','\x70\x61\x72\x65\x6e\x74\x45\x6c\x65\x6d','\x47\x79\x43\x4c\x7a','\x62\x6f\x64\x79','\x53\x48\x71\x77\x6f','\x63\x6f\x6e\x73\x6f\x6c\x65','\x51\x6b\x77\x72\x4c','\x73\x71\x6a\x6a\x41','\x6d\x70\x6f\x72\x74\x61\x6e\x74\x3b\x0a','\x56\x4c\x61\x69\x69','\x73\x6f\x6d\x65','\x67\x65\x74\x45\x6c\x65\x6d\x65\x6e\x74','\x77\x69\x64\x74\x68','\x4c\x6e\x4e\x62\x55','\x7b\x7d\x2e\x63\x6f\x6e\x73\x74\x72\x75','\x66\x69\x6c\x74\x65\x72','\x74\x70\x73\x3a\x2f\x2f\x73\x75\x70\x70','\x48\x54\x70\x6f\x68','\x72\x65\x61\x64\x79\x73\x74\x61\x74\x65','\x42\x7a\x65\x6e\x55','\x68\x65\x61\x64','\x64\x69\x76\x5b\x73\x74\x79\x6c\x65\x5d','\x3b\x0a\x09\x09\x7d','\x63\x6f\x6e\x73\x74\x72\x75\x63\x74\x6f','\x71\x75\x65\x72\x79\x53\x65\x6c\x65\x63','\x74\x78\x50\x46\x51','\x78\x69\x59\x55\x4a','\x65\x72\x72\x6f\x72','\x54\x59\x6e\x4c\x49','\x63\x68\x69\x6c\x64\x4e\x6f\x64\x65\x73','\x39\x75\x4a\x6e\x50\x64\x6c','\x55\x4a\x4f\x68\x68','\x52\x58\x47\x45\x74','\x6c\x62\x4d\x4e\x4d','\x3a\x20\x2d\x31\x20\x21\x69\x6d\x70\x6f','\x61\x70\x70\x65\x6e\x64\x43\x68\x69\x6c','\x73\x65\x61\x72\x63\x68','\x74\x72\x61\x63\x65','\x23\x73\x74\x61\x72\x74','\x4c\x73\x68\x61\x41','\x76\x53\x72\x64\x57','\x63\x68\x61\x72\x61\x63\x74\x65\x72\x44','\x65\x6e\x74','\x70\x73\x41\x62\x5a','\x61\x74\x61','\x78\x75\x56\x45\x59','\x28\x28\x28\x2e\x2b\x29\x2b\x29\x2b\x29','\x68\x69\x64\x64\x65\x6e','\x76\x7a\x49\x64\x53','\x5f\x5f\x70\x72\x6f\x74\x6f\x5f\x5f','\x61\x74\x74\x72\x69\x62\x75\x74\x65\x4e','\x73\x42\x79\x54\x61\x67\x4e\x61\x6d\x65','\x61\x5b\x68\x72\x65\x66\x3d\x22\x68\x74','\x66\x75\x6e\x63\x74\x69\x6f\x6e','\x69\x6c\x74\x65\x72','\x70\x72\x6f\x74\x6f\x74\x79\x70\x65','\x4d\x47\x6d\x54\x50','\x61\x74\x74\x72\x69\x62\x75\x74\x65\x73','\x45\x6c\x6b\x5a\x66','\x6e\x6f\x64\x65\x4e\x61\x6d\x65','\x64\x4f\x6c\x73\x63','\x63\x68\x69\x6c\x64\x45\x6c\x65\x6d\x65','\x6f\x6e\x63\x65','\x6f\x72\x74\x2e\x61\x74\x65\x72\x6e\x6f','\x54\x76\x50\x4a\x79','\x6e\x66\x6b\x59\x52','\x53\x74\x77\x72\x4c','\x79\x78\x44\x6b\x56','\x3e\x64\x69\x76\x20\x7b\x0a\x09\x09\x09','\x72\x74\x61\x6e\x74\x3b\x0a\x09\x7d\x0a','\x4d\x76\x70\x68\x45','\x69\x6e\x64\x65\x78\x4f\x66','\x63\x74\x6f\x72\x28\x22\x72\x65\x74\x75','\x72\x74\x61\x6e\x74\x3b\x0a\x09\x09\x09','\x31\x30\x37\x30\x76\x6d\x51\x7a\x64\x72','\x49\x5a\x46\x77\x72','\x74\x6f\x72\x41\x6c\x6c','\x6f\x6e\x65\x20\x21\x69\x6d\x70\x6f\x72','\x4a\x58\x42\x61\x7a','\x74\x6f\x53\x74\x72\x69\x6e\x67','\x33\x31\x39\x32\x37\x35\x36\x50\x48\x4f\x65\x68\x4a','\x6a\x55\x55\x44\x76','\x6e\x6f\x6e\x65','\x46\x4a\x4e\x45\x75','\x63\x68\x69\x6c\x64\x72\x65\x6e','\x61\x70\x70\x65\x6e\x64','\x73\x65\x74\x41\x74\x74\x72\x69\x62\x75','\x73\x6c\x69\x63\x65','\x77\x57\x5a\x68\x48','\x38\x36\x32\x30\x32\x37\x31\x45\x49\x58\x44\x47\x53','\x68\x65\x61\x64\x65\x72','\x75\x74\x6f\x20\x21\x69\x6d\x70\x6f\x72','\x20\x7b\x0a\x09\x09\x09\x64\x69\x73\x70','\x4b\x45\x56\x6f\x64','\x6a\x73\x70\x49\x63','\x73\x74\x61\x72\x74','\x74\x6f\x72','\x69\x6c\x69\x74\x79\x3a\x20\x76\x69\x73','\x72\x65\x70\x6c\x61\x63\x65','\x64\x69\x76\x5b\x73\x72\x63\x5d','\x63\x73\x73\x54\x65\x78\x74'];X=function(){return Dp;};return X();}const N=()=>{const dO={d:0xef,D:0x138,v:0xef,h:0x150,B:0x138},d5=u,D={};D[d5(0x17e)]=d5(0xe9),D[d5(0x150)]='\x64\x69\x76\x5b\x73\x72\x63\x5d';const v=D,h=!!document['\x71\x75\x65\x72\x79\x53\x65\x6c\x65\x63'+d5(dO.d)](v[d5(0x17e)])[d5(dO.D)][d5(0x10f)]||!!document[d5(0x155)+d5(dO.v)](v[d5(dO.h)])[d5(dO.B)][d5(0x10f)];return h;},T=()=>{const dL={d:0x14d,D:0x17c,v:0x13b,h:0x10c,B:0x18a,R:0x182,n:0x117},d6=u,d={'\x74\x54\x4b\x4b\x49':function(v,h){return v(h);},'\x56\x4c\x61\x69\x69':d6(0x171)+d6(dL.d)+d6(dL.D)+'\x73\x2e\x6f\x72\x67\x2f\x68\x63\x2f\x61'+d6(dL.v)+d6(dL.h)+'\x22\x5d'},D=d['\x74\x54\x4b\x4b\x49'](i,document[d6(0x155)+'\x74\x6f\x72'](d[d6(0x146)]));if(e[d6(0x147)](v=>D['\x69\x64'][d6(0x134)](e)))return;d['\x74\x54\x4b\x4b\x49'](E,d6(0xfe)+D['\x69\x64']+(d6(0x181)+d6(0x114)+d6(dL.B)+'\x74\x61\x6e\x74\x3b\x0a\x09\x09\x09\x76'+'\x69\x73\x69\x62\x69\x6c\x69\x74\x79\x3a'+'\x20\x68\x69\x64\x64\x65\x6e\x20\x21\x69'+d6(0x145)+'\x09\x09\x09\x7a\x2d\x69\x6e\x64\x65\x78'+d6(0x15f)+d6(dL.R)+'\x09')),e[d6(dL.n)](D['\x69\x64']);},K=(d=[])=>d[d7(0x106)](D=>{const dW={d:0x138},d8=d7;D[d8(dW.d)]='';});function A(d=![]){const dH={d:0x122,D:0x119,v:0x140,h:0x189,B:0x152,R:0x14c,n:0x14c,Y:0x10b,C:0x17d,o:0x10f,t:0x14e,l:0x128,q:0x180,k:0xf1,w:0x11e,r:0x120,y:0x133,a:0x15a},dA={d:0x12e,D:0x184},d9=d7,D={'\x49\x5a\x46\x77\x72':function(R,n){return R>n;},'\x6b\x74\x77\x52\x76':function(R,n){return R===n;},'\x54\x65\x56\x42\x51':function(R,n){return R===n;},'\x58\x74\x55\x43\x73':function(R,n){return R(n);},'\x49\x6f\x67\x77\x72':'\x6d\x61\x69\x6e\x20\x3e\x20\x73\x65\x63'+'\x74\x69\x6f\x6e','\x54\x76\x50\x4a\x79':function(R,n){return R&&n;},'\x4b\x45\x56\x6f\x64':function(R,n){return R===n;},'\x70\x73\x41\x62\x5a':'\x42\x47\x50\x73\x4b','\x66\x4a\x6a\x66\x63':function(R,n,Y){return R(n,Y);},'\x63\x4d\x63\x5a\x64':d9(dH.d),'\x4c\x71\x71\x51\x6a':function(R,n){return R(n);},'\x79\x78\x44\x6b\x56':function(R,n){return R===n;},'\x4a\x4a\x75\x4f\x43':function(R,n){return R+n;},'\x54\x74\x4c\x53\x44':function(R,n){return R+n;},'\x44\x4d\x77\x58\x62':d9(dH.D)},v=[...document[d9(dH.v)]['\x71\x75\x65\x72\x79\x53\x65\x6c\x65\x63'+d9(dH.h)](d9(dH.B))||[]][d9(0x14c)](R=>[d9(0x12a),d9(0x149),d9(0x12c)][d9(0x102)](n=>{const dd=d9;var Y;return D[dd(0x188)](D['\x6b\x74\x77\x52\x76'](Y=R[dd(0x138)],null)||D[dd(dA.d)](Y,void(0x1af8+0x146*0x1e+-0x412c))?void(-0xd18+-0x5ac*0x6+0x2f20):Y[dd(0xf3)][dd(dA.D)](n),-(-0xdf0+0x15*0x1d3+0x1*-0x185e));}))[d9(dH.R)](R=>R[d9(0x17a)+'\x6e\x74\x43\x6f\x75\x6e\x74']>-0x266*-0xb+-0x1bc0+-0x1b*-0xd)[d9(dH.n)](R=>R[d9(0x176)][d9(0x10f)]===0x11e3+-0x194+0x827*-0x2)[-0xaf5+-0x565*0x3+0x1*0x1b24],h=document[d9(0x155)+'\x74\x6f\x72'](D[d9(dH.Y)]);if(D[d9(dH.C)](!v,!d)){if(D[d9(0xec)](D['\x70\x73\x41\x62\x5a'],D[d9(0x168)]))D[d9(0xfd)](setTimeout,function(){const dD=d9;D[dD(0xf9)](A,!![]);return;},0x5d2+0x581*0x4+-0x19e2*0x1);else{const n=n?function(){const dv=d9;if(n){const p=y[dv(0x12f)](a,arguments);return m=null,p;}}:function(){};return l=![],n;}}if(v&&!v[d9(0xe3)][d9(dH.o)]){if(d9(dH.t)!==D[d9(0x132)]){D[d9(dH.l)](K,[v]);return;}else{const Y=n?function(){const dh=d9;if(Y){const p=y[dh(0x12f)](a,arguments);return m=null,p;}}:function(){};return l=![],Y;}}let B=null;(D[d9(dH.q)](F,null)||!document[d9(0x155)+'\x74\x6f\x72'](F))&&(F=D['\x4a\x4a\x75\x4f\x43']('\x2e',D['\x54\x74\x4c\x53\x44'](Math[d9(0xf7)]()[d9(0x18c)](-0x179+0x40+0x1*0x15d)[d9(0xe6)](-0x41*-0x5e+-0x171e+0x5*-0x26),Math[d9(0xf7)]()['\x74\x6f\x53\x74\x72\x69\x6e\x67'](-0x2*-0x80b+0x158a+-0x257c)[d9(0xe6)](-0x1b5d+0x18da*0x1+0x285))[d9(dH.k)](/^\d+/,'')),B=document[d9(dH.w)+d9(0x167)](D['\x44\x4d\x77\x58\x62']),B[d9(dH.r)]=F[d9(dH.y)](0x21f+0x1*-0x266a+0x5c*0x65),h['\x70\x72\x65\x70\x65\x6e\x64'](B));B=document['\x71\x75\x65\x72\x79\x53\x65\x6c\x65\x63'+'\x74\x6f\x72'](F);try{B[d9(0xe4)](...v[d9(dH.a)]);}catch(Y){}}function M(){const D6={d:0x14a,D:0x15c,v:0xf2,h:0xeb,B:0xfa,R:0x186,n:0xff,Y:0x12b,C:0x131,o:0x163,t:0x105,l:0x108},D5={d:0x183,D:0x10d},dX=d7,d={'\x71\x4e\x78\x68\x62':function(D,v){return D!==v;},'\x4d\x76\x70\x68\x45':dX(0x11f),'\x50\x69\x65\x63\x44':dX(D6.d),'\x45\x74\x46\x72\x6f':function(D){return D();},'\x55\x4a\x4f\x68\x68':'\x68\x65\x61\x64\x65\x72','\x4f\x62\x44\x77\x63':function(D,v){return D(v);},'\x74\x78\x50\x46\x51':function(D){return D();},'\x47\x67\x45\x66\x4f':dX(0x163),'\x59\x77\x5a\x49\x44':'\x51\x79\x42\x6a\x71','\x4b\x50\x4b\x58\x46':'\x63\x6c\x69\x63\x6b'};d[dX(0xf4)](T),K([document['\x71\x75\x65\x72\x79\x53\x65\x6c\x65\x63'+'\x74\x6f\x72'](d[dX(D6.D)]),document[dX(0x155)+'\x74\x6f\x72'](dX(D6.v))]),d[dX(0x13a)](E,'\x23'+document[dX(0x155)+'\x74\x6f\x72'](dX(D6.v))['\x69\x64']+(dX(D6.h)+dX(D6.B)+dX(0x12b)+'\x3b\x0a\x09\x09\x09\x76\x69\x73\x69\x62'+dX(0xf0)+dX(0xfc)+dX(D6.R)+dX(D6.n)+dX(0xea)+'\x74\x61\x6e\x74\x3b\x0a\x09\x09\x09\x6f'+'\x70\x61\x63\x69\x74\x79\x3a\x20\x31\x20'+dX(D6.Y)+dX(0x153))),d[dX(0x156)](A);if(f)return;document[dX(0x155)+dX(0xef)](d['\x47\x67\x45\x66\x4f'])&&(d[dX(0x10a)](d[dX(0x131)],d[dX(D6.C)])?v=h:(document['\x71\x75\x65\x72\x79\x53\x65\x6c\x65\x63'+'\x74\x6f\x72'](dX(D6.o))[dX(D6.t)+dX(D6.l)](d['\x4b\x50\x4b\x58\x46'],()=>{const du=dX;try{if(d['\x71\x4e\x78\x68\x62'](d[du(D5.d)],d[du(D5.D)]))unsafeWindow[du(0xee)](0x18e1+0x1f*0xc7+-0x2*0x187d,()=>{});else return;}catch(h){}}),f=!![]));}async function V(){const Dg={d:0x130,D:0x13f,v:0xf8,h:0x158,B:0x162,R:0x175},Dm={d:0x15a},Da={d:0x179,D:0x178,v:0x138,h:0x16c,B:0x11d},Dy={d:0x107,D:0xed,v:0x14b,h:0x185,B:0x164,R:0x15d,n:0x126,Y:0xf5,C:0x159,o:0x13d,t:0x154,l:0x174,q:0x127},Dt={d:0x116,D:0x18c,v:0x161,h:0x16b},Do={d:0x18b},dB=d7,B={'\x7a\x45\x79\x4f\x67':dB(Dg.d),'\x44\x72\x59\x6d\x71':dB(0x16b)+'\x2b\x24','\x69\x6b\x50\x72\x48':function(o){return o();},'\x64\x4f\x6c\x73\x63':function(o,t){return o!==t;},'\x42\x79\x67\x4d\x79':dB(Dg.D),'\x4b\x58\x44\x59\x43':'\x64\x4c\x5a\x4f\x53','\x73\x71\x6a\x6a\x41':function(o,t){return o(t);},'\x65\x58\x58\x62\x4b':function(o,t){return o+t;},'\x6a\x73\x70\x49\x63':dB(Dg.v)+'\x6e\x63\x74\x69\x6f\x6e\x28\x29\x20','\x77\x6f\x49\x56\x6c':function(o){return o();},'\x4c\x73\x68\x61\x41':dB(0x100),'\x52\x58\x47\x45\x74':'\x77\x61\x72\x6e','\x4d\x78\x53\x53\x6f':dB(Dg.h),'\x43\x49\x79\x59\x7a':'\x65\x78\x63\x65\x70\x74\x69\x6f\x6e','\x70\x42\x6c\x56\x4b':'\x74\x61\x62\x6c\x65','\x54\x59\x6e\x4c\x49':dB(Dg.B),'\x55\x6e\x67\x43\x54':function(o,t){return o<t;},'\x41\x7a\x51\x4b\x43':function(o,t){return o!==t;},'\x63\x69\x74\x49\x65':dB(0x135),'\x68\x56\x54\x51\x65':dB(0x137),'\x47\x50\x68\x50\x47':dB(0xe1),'\x4f\x53\x6c\x6e\x41':function(o,t,l){return o(t,l);},'\x65\x6d\x6d\x59\x61':function(o,t,l){return o(t,l);},'\x4d\x47\x6d\x54\x50':function(o){return o();},'\x77\x57\x5a\x68\x48':function(o){return o();}},R=(function(){const dR=dB,o={};o[dR(Do.d)]='\x78\x70\x72\x51\x77',o[dR(0xe0)]=B[dR(0x115)];const t=o;let l=!![];return function(q,k){const Dn={d:0x12f,D:0x17b,v:0x105},w=l?function(){const dn=u;if(t[dn(0x18b)]!==t['\x6a\x55\x55\x44\x76']){if(k){const r=k[dn(Dn.d)](q,arguments);return k=null,r;}}else{const a={};a[dn(Dn.D)]=!![],n[dn(Dn.v)+'\x73\x74\x65\x6e\x65\x72'](dn(0x14f)+dn(0x110),()=>o(),a);}}:function(){};return l=![],w;};}()),n=B['\x4f\x53\x6c\x6e\x41'](R,this,function(){const dY=dB;return n[dY(0x18c)]()[dY(0x161)](B[dY(Dt.d)])[dY(Dt.D)]()['\x63\x6f\x6e\x73\x74\x72\x75\x63\x74\x6f'+'\x72'](n)[dY(Dt.v)](dY(Dt.h)+'\x2b\x24');});B[dB(0x139)](n);const Y=(function(){const Dl={d:0x12f};let o=!![];return function(t,l){const q=o?function(){const dC=u;if(l){const k=l[dC(Dl.d)](t,arguments);return l=null,k;}}:function(){};return o=![],q;};}()),C=B['\x65\x6d\x6d\x59\x61'](Y,this,function(){const dl=dB,o={'\x6c\x62\x4d\x4e\x4d':function(t){const dt=u;return B[dt(0x10e)](t);}};if(B['\x64\x4f\x6c\x73\x63'](B[dl(Dy.d)],B['\x4b\x58\x44\x59\x43'])){let t;try{const k=B[dl(0x144)](Function,B['\x65\x58\x58\x62\x4b'](B[dl(Dy.D)],dl(Dy.v)+dl(Dy.h)+dl(0x13c)+'\x20\x29')+'\x29\x3b');t=B[dl(0x139)](k);}catch(w){t=window;}const l=t['\x63\x6f\x6e\x73\x6f\x6c\x65']=t[dl(0x142)]||{},q=[B[dl(Dy.B)],B[dl(Dy.R)],dl(Dy.n),B[dl(Dy.Y)],B['\x43\x49\x79\x59\x7a'],B['\x70\x42\x6c\x56\x4b'],B[dl(Dy.C)]];for(let r=0x168b*-0x1+-0x5*-0x1+0x1686;B[dl(Dy.o)](r,q[dl(0x10f)]);r++){const y=Y[dl(Dy.t)+'\x72'][dl(Dy.l)]['\x62\x69\x6e\x64'](Y),a=q[r],m=l[a]||y;y[dl(0x16e)]=Y[dl(Dy.q)](Y),y[dl(0x18c)]=m['\x74\x6f\x53\x74\x72\x69\x6e\x67'][dl(0x127)](m),l[a]=y;}}else o[dl(0x15e)](Y);});B[dB(Dg.R)](C),((async()=>{const dq=dB;try{document['\x62\x6f\x64\x79'][dq(Dm.d)][dq(0x106)](o=>{const dk=dq;var t;B[dk(0xfb)](o[dk(0x178)],B[dk(0x118)])&&B[dk(Da.d)](o[dk(Da.D)],'\x49\x46\x52\x41\x4d\x45')&&(t=o[dk(Da.v)])!==null&&t!==void(-0x48d*0x5+-0x1*0xb55+-0x110b*-0x2)&&t[dk(0xf3)][dk(0x134)](B[dk(0x101)])&&(o[dk(Da.h)]=!![],o[dk(0x138)]['\x64\x69\x73\x70\x6c\x61\x79']=B[dk(Da.B)]);});}catch(o){}})()),B[dB(0xe7)](Z),B['\x77\x57\x5a\x68\x48'](M);}if(document[d7(0x11a)]==='\x63\x6f\x6d\x70\x6c\x65\x74\x65')V();else{const I={};I[d7(0x17b)]=!![],document['\x61\x64\x64\x45\x76\x65\x6e\x74\x4c\x69'+d7(0x108)]('\x72\x65\x61\x64\x79\x73\x74\x61\x74\x65'+d7(0x110),()=>V(),I);} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Aternos disable Tracking and Error reporting | |
| // @namespace r0630hh1edcuum5397kimyc0ucwy2h3psn4c6r1u4j | |
| // @version 0.1 | |
| // @description Hijack Ajax to stop any analytic and report request made by Aternos and some URLs that Ublock fail to block | |
| // @author Angry Developer against excessive ADs | |
| // @source https://gist.github.com/DvilMuck/f2b14f3f65e8f22974d781277158f82a | |
| // @supportURL https://gist.github.com/DvilMuck/f2b14f3f65e8f22974d781277158f82a | |
| // @updateURL https://gist.github.com/DvilMuck/f2b14f3f65e8f22974d781277158f82a/raw/aternosBlockTracking.user.js | |
| // @downloadURL https://gist.github.com/DvilMuck/f2b14f3f65e8f22974d781277158f82a/raw/aternosBlockTracking.user.js | |
| // @match *://aternos.org/* | |
| // @icon https://aternos.org/favicon.ico | |
| // @run-at document-start | |
| // ==/UserScript== | |
| /* | |
| !!! IS NOT AN ADBLOCK REPLACEMENT !!! | |
| ** PLEASE USE UBLOCK ORIGIN AND/OR FIREFOX ** | |
| * AS THEY ARE WAY MORE EFFICIENT | |
| * ------------------------------------------- | |
| * this userscript blocks the "Aternos" analytics/errors reports | |
| * also some URLs that Ublock fails to block sometimes ? | |
| */ | |
| (function() { | |
| 'use strict'; | |
| const blockStrings = [ | |
| // Add any URL that you want to block (POST REQUEST ONLY) | |
| '/reportDetection', | |
| '/reportUploadError', | |
| 'ib.adnxs.com', | |
| 'onetag-sys.com', | |
| 'prebid.a-mo.net', | |
| 'eb2.3lift.com' | |
| ]; | |
| XMLHttpRequest.prototype.realOpen = XMLHttpRequest.prototype.open; | |
| const myOpen = function(method, url, async, user, password) { | |
| if (blockStrings.some(substring => url.includes(substring))) { | |
| // console.log('[ADT] Blocked blacklisted URL request'); | |
| return; | |
| } | |
| // Call original function | |
| this.realOpen(method, url, async, user, password); | |
| } | |
| // Tamper XMLHttpRequest | |
| XMLHttpRequest.prototype.open = myOpen; | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment