Wowtoken.info anti-anti-adblocker

Fools the anti-adblocker on wowtoken.info

当前为 2017-09-13 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Wowtoken.info anti-anti-adblocker
  3. // @namespace syserr0r
  4. // @description Fools the anti-adblocker on wowtoken.info
  5. // @lastupdated 2017-09-13
  6. // @version 1.0
  7. // @license Public Domain
  8. // @include https://wowtoken.info/
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. window.adsbygoogle = { push: function() { } };
  13. window.getComputedStylefn = window.getComputedStyle;
  14. window.getComputedStyle = function(x) {
  15. if (x.className == 'adsbygoogle')
  16. return {
  17. display: 'block',
  18. position: 'static',
  19. overflowY: 'visible',
  20. overflowX: 'visible',
  21. overflow: 'visible',
  22. opacity: '1',
  23. height: '80px',
  24. width: '200px',
  25. }
  26. else
  27. return window.getComputedStylefn(x);
  28. };