CtgoFx

Remove ads and white spaces.

当前为 2014-11-27 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name CtgoFx
  3. // @author Itsuki
  4. // @version 271014
  5. // @match http://*.chatango.com/*
  6. // @description Remove ads and white spaces.
  7. // @resource CSS https://github.com/Itsuki4/gmscripts/raw/master/chatango/style.css
  8. // @require http://code.jquery.com/jquery-2.1.1.min.js
  9. // @grant GM_getResourceText
  10. // @grant GM_addStyle
  11. // @namespace https://greasyfork.org/es/users/6316-itsuki
  12. // ==/UserScript==
  13. /**/
  14.  
  15. // Load style sheet
  16. var cssSrc = GM_getResourceText ("CSS");
  17. GM_addStyle(cssSrc);
  18.  
  19.  
  20. function fcol() { // Firefox fix
  21. document.getElementsByTagName("col")[1].style.display = 'none';
  22. document.getElementsByTagName("colgroup")[0].style.display = 'none';
  23. document.getElementsByTagName("embed")[0].style.height = "100%";
  24. document.getElementsByTagName("embed")[0].style.width = "100%";
  25. }
  26.  
  27. try {
  28. fcol();
  29. } catch(err) {}