Wednesday, August 19, 2009

Hide Twitter Trends (User Script/Greasemonkey Script)

Now that Twitter shows twitter trends in a sidebar on everybody's main page, the trends have basically gone to hell. They're filled with tons of spam and retarded MySpace-esque junk that just makes me want to put my fist through my screen. I wish Twitter had an option to automatically collapse or hide that sidebar, because I don't even want to be distracted by it.

If you use Firefox, Opera, Chrome, Chromium, or any other browser that supports user scripts (a.k.a. Greasemonkey scripts), here's a tiny script I wrote which will automatically hide the trends sidebar on Twitter. I'm not going to bother with instructions (but if you use Chrome or Chromium, look here for details), because I'm sure if you have gotten this far without saying "What the !@#$ is Greasemonkey?", you already know what to do with this script.

Enjoy!

// ==UserScript==
// @name Twitter Trends No More
// @namespace http://www.hochmann.org/
// @description Completely hide the Twitter trends sidebar so it won't distract/annoy you.
//
// @match http://twitter.com/*
// @match http://*.twitter.com/*
//
// @run-at document-start
// ==/UserScript==

document.getElementById('trends').style.visibility = 'hidden';

Side note: So far, I've only tested this with Chromium. It *should* work with any browser that supports user scripts, especially since it's really only one line of code. But if it doesn't work for you, leave a comment and I'll fix it.

Posted via email from hochmann-y goodness

0 comments: