18-Apr-2009 Uncategorized

want to hide the Facebook Highlights section?

Don’t like the Highlights section on Facebook?

If you don’t have Firefox yet, click here to download it. Next start Firefox and click here to install the GreaseMonkey Plug-in. Last click here to install the script. You may have to hit the F5 key to get it to kick in. If it isn’t working then make sure you have GreaseMonkey enabled by going to Tools, GreaseMonkey, and making sure ”Enabled” is checked.

Want to know what it’s doing?

// ==UserScript==
// @name        Highlights Hider
// @author      Mark Shields
// @namespace	https://markshields.com/
// @description This script will hide the highlights section on Facebook
// @include       http://*.facebook.com/*
// ==/UserScript==
// first let's look for all the DIVs (aka sections) on the page
myDivs = document.getElementsByTagName('DIV');
// next we'll loop through all of them to find one classified as UIHotStream
// which apparently is what Highlights is really called
for (counter=0; counter < myDivs.length; counter++) {
if (myDivs[counter].className == 'UIHotStream UIStream') {
// we found a match so we replace all of the HTML with this:
myDivs[counter].innerHTML = 'Hidden by Mark Shields - Super Genius';
Facebook Highlights Hider