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.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name       Hide WtF and Trending on Twitter
// @namespace  http://flaeme.github.io
// @version    0.1
// @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.
// @match      *://twitter.com/*
// @copyright  2014 Flaeme Flow
// ==/UserScript==

function addGlobalStyle(css) {
	try {
		var elmHead, elmStyle;
		elmHead = document.getElementsByTagName('head')[0];
		elmStyle = document.createElement('style');
		elmStyle.type = 'text/css';
		elmHead.appendChild(elmStyle);
		elmStyle.innerHTML = css;
	} catch (e) {
		if (!document.styleSheets.length) {
			document.createStyleSheet();
		}
		document.styleSheets[0].cssText += css;
	}
}

addGlobalStyle('div.module.wtf-module{ display: none; margin-bottom: 0px } div.module.trends{ display: none; margin-bottom: 0px }');