CtgoFX

Remove ads and white spaces from chatango

当前为 2014-10-25 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name CtgoFX
  3. // @namespace http://itsuki.ga/
  4. // @author Itsuki
  5. // @version 251014-10
  6. // @match http://*.chatango.com*
  7. // @grant GM_addStyle
  8. // @description Remove ads and white spaces from chatango
  9. // ==/UserScript==
  10.  
  11. GM_addStyle("#ad, #ad_placeholder_td, #ad_wrapper, #buyers_ad, #bottom_table, \
  12. * body [name*='google_ads_frame1'], * body [name*='google_ads_frame2'], \
  13. #left_container [href*='ad'], .topad { \
  14. display: none !important; \
  15. visibility: hidden !important; \
  16. } \
  17. #flashcontent { \
  18. display: block !important; \
  19. position: absolute !important; \
  20. top: 0px; \
  21. left: 0px; \
  22. width: 100%; \
  23. height: 100%; \
  24. }");
  25.  
  26. function fixPage() {
  27. document.getElementsByTagName("col")[1].style.display = 'none';
  28. document.getElementsByTagName("colgroup")[0].style.display = 'none';
  29. }
  30.  
  31. try { fixPage(); } catch(err) {}