Remove From Google Results

March 14th, 2009  |  Published in etc

The Google 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 remover

// @namespace

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

// @include*

// ==/UserScript==


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


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

    document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);

for (var result=null, i=0; result=results.snapshotItem(i); i++) {'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.