// ==UserScript==
// @name Google hated domains remover
// @namespace http://www.google.com
// @description Removes results for any page from google which is listed in banned
// @include http://www.google.*/search*
// @include http://*.google.*/search*
// ==/UserScript==
// Hacked from arantius' "Google about.com remover"
// http://www.arantius.com/misc/greasemonkey/
var banned = [
"roseindia.net",
//"experts-exchange.com",
"weask.us",
"ehow.com",
"efreedom.com",
"6api.com",
"kods.net",
"questionhub.com",
"expert.tc",
];
var str = '';
for(var i=0; i<banned.length; i++) {
if(i != 0) {
str = str + ' | ';
}
str = str + '//a[contains(@href, "' + banned[i] + '")]/..';
}
var results=document.evaluate(str,
document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
for (var result=null, i=0; result=results.snapshotItem(i); i++) {
result.parentNode.parentNode.style.display='none';
}
posted by peacheater at 11:30 AM on November 28, 2010 [1 favorite]