Last active
December 28, 2021 23:54
-
-
Save DRSDavidSoft/eb6f594ed0f028314462e9a142ca05a7 to your computer and use it in GitHub Desktop.
Ads Remover JS
This file contains 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
!function(a,d,s,f,u,c,k){var sentinel = function(){var e,n,t,i=Array.isArray,r={},o={};return{on:function(a,s){if(s){if(!e){var f=document,l=f.head;f.addEventListener("animationstart",function(e,n,t,i){if(n=o[e.animationName])for(e.stopImmediatePropagation(),t=n.length,i=0;i<t;i++)n[i](e.target)},!0),e=f.createElement("style"),l.insertBefore(e,l.firstChild),n=e.sheet,t=n.cssRules}(i(a)?a:[a]).map(function(e,i,a){(i=r[e])||(a="!"==e[0],r[e]=i=a?e.slice(1):"sentinel-"+Math.random().toString(16).slice(2),t[n.insertRule("@keyframes "+i+"{from{transform:none;}to{transform:none;}}",t.length)]._id=e,a||(t[n.insertRule(e+"{animation-duration:0.0001s;animation-name:"+i+";}",t.length)]._id=e),r[e]=i),(o[i]=o[i]||[]).push(s)})}},off:function(e,a){(i(e)?e:[e]).map(function(e,i,s,f){if(i=r[e]){if(s=o[i],a)for(f=s.length;f--;)s[f]===a&&s.splice(f,1);else s=[];if(!s.length){for(f=t.length;f--;)t[f]._id==e&&n.deleteRule(f);delete r[e],delete o[i]}}})},reset:function(){r={},o={},e&&e.parentNode.removeChild(e),e=0}}}(document);e=d.createElement('span'),e.innerHTML=k,e.style.display='none',st=function(){!!a[c]&&!!a[c].init?(a[c].init(u),mx()):window.setTimeout(st, 500)},mx=function(){if(!!a[c].mx) return;a[c].mx=!0,sentinel.on('div',st)},fn=function(){d.body.innerHTML+=k,st()},(d.attachEvent?'complete'===d.readyState:'loading'!==d.readyState)?fn():d.addEventListener('DOMContentLoaded',fn);var y=!1;for(var y in b=function(){y||this.readyState&&'complete'!=this.readyState||(y=!0,st())},_={type:'text/javascript',async:!0,src:f,onload:b,onreadystatechange:b},s=d.createElement(s),_)_.hasOwnProperty(y)&&(s[y]=_[y]);h=d.querySelector('script'),h&&(p=h.parentNode,p.insertBefore(s,h),p.insertBefore(e,h))}(window,document,'script',"https://www.drs-projects.ir/Codes/noAds/latest/",{nasty:"*|YEKTANET|sabavision|sabaClick|advert"},"noADS","<DRS:noADS></DRS:noADS>\n<!-- ADS-Remover Script v2.0.0 -->\n<!-- by DRS David Soft -->\n<!-- David@Refoua.me -->\n<style>#rozfixed{left:-100% !important;display: none !important;}</style>\n"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment