Remove about.com From Google Results

March 14th, 2009  |  Published in etc

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:

 
  // ==UserScript==</p>

<pre><code>// @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';

}

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

Leave a Response

© Michael Hall, licensed under a Creative Commons Attribution-ShareAlike 3.0 United States license.