Remove about.com From Google Results

From the archive — written 17 years ago. About old posts.

The Google about.com remover is awesome, but it broke when Google changed its results style to include the SearchWiki stuff. This is a quick fix for that:

[sourcecode language=‘javascript’] 
 // ==UserScript==

// @name          Google about.com remover

// @namespace     http://www.arantius.com/misc/greasemonkey/

// @description	  Removes results for any "about.com" page from google.

// @include       http://www.google.com/search*

// ==/UserScript==

//

// fixed to cope with the new Google search wiki-style results

//

var results=document.evaluate('//a[contains(@href, "about.com/")]/..', 

	document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);

for (var result=null, i=0; result=results.snapshotItem(i); i++) {

	result.parentNode.style.display='none';

}

[/sourcecode]

This is one of the reasons I can’t quit Firefox.

#about.com #google #greasemonkey

Drop a line about this.