Hide WtF and Trending on Twitter

Hides the WtF (Who to Follow, abbreviation theirs) and Trending modules on the side. Made this because however adblock hides elements leaves an ugly gap.

  1. // ==UserScript==
  2. // @name Hide WtF and Trending on Twitter
  3. // @namespace http://flaeme.github.io
  4. // @version 0.1
  5. // @description Hides the WtF (Who to Follow, abbreviation theirs) and Trending modules on the side. Made this because however adblock hides elements leaves an ugly gap.
  6. // @match *://twitter.com/*
  7. // @copyright 2014 Flaeme Flow
  8. // ==/UserScript==
  9.  
  10. function addGlobalStyle(css) {
  11. try {
  12. var elmHead, elmStyle;
  13. elmHead = document.getElementsByTagName('head')[0];
  14. elmStyle = document.createElement('style');
  15. elmStyle.type = 'text/css';
  16. elmHead.appendChild(elmStyle);
  17. elmStyle.innerHTML = css;
  18. } catch (e) {
  19. if (!document.styleSheets.length) {
  20. document.createStyleSheet();
  21. }
  22. document.styleSheets[0].cssText += css;
  23. }
  24. }
  25.  
  26. addGlobalStyle('div.module.wtf-module{ display: none; margin-bottom: 0px } div.module.trends{ display: none; margin-bottom: 0px }');

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址