zapIframesPropIde

zap all iframes Properties; 4 verification cycles; more efficient.

  1. // ==UserScript==
  2. // @name zapIframesPropIde
  3. // @description zap all iframes Properties; 4 verification cycles; more efficient.
  4. // @include *
  5. // @include https://*
  6. // @include http://*
  7. // @namespace https://greasyfork.org/en/users/3561-lucianolll
  8. // @namespace https://openuserjs.org/users/lucianolll
  9. // @version 15
  10. // @grant none
  11. // @run-at document-end
  12. // @author lucianolll
  13. // ==/UserScript==
  14. const gnfr={
  15. zapifrprp(){
  16. const doc=document,ifra=doc.getElementsByTagName('iframe'); if(!ifra.length){return false;}
  17. const tmp=Array.from(ifra,s=>[s,s.parentNode]); tmp.reverse(); tmp.map(([f,p])=>p.removeChild(f));
  18. },
  19. adtm(){[3000,9000,15000,21000].map(s=>setTimeout(gnfr.zapifrprp,s));},
  20. adCodfr(){
  21. const doc=document,rfb=doc.getElementsByTagName('body')[0],adscrip=doc.createElement('script');adscrip.setAttribute('axis','zapIframesProp');
  22. adscrip.textContent=`const gnfr={ ${gnfr.zapifrprp}, ${gnfr.adtm},}; addEventListener('load',gnfr.zapifrprp,false);addEventListener('load',gnfr.adtm(),false);document.body.setAttribute('ondblclick','gnfr.zapifrprp()');` ;rfb.insertBefore(adscrip,rfb.lastChild);
  23. },
  24. };
  25. addEventListener('load',gnfr.zapifrprp,false);
  26. addEventListener('load',gnfr.adCodfr(),false);