Google Search Filter

By Shinya Last update Mar 25, 2008 — Installed 5,302 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 10 posts, 9 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
spoodge User

Brilliant script!....only I can't get this working in firefox 3.03, is it compatible ?

tia

 
chfaure User

Proposed changes for * support in filter :

// SearchFilter Class :
createRegExp: function(filter){
return new RegExp("^https?:\/\/" + filter.replace(/\./g, "\.").replace(/\*/g,"[^\/]*") + "\/", "i");
},


Proposed modification for firefox 3.0 support and more visible config filter box

// in EditFilter.init method :
var place = document.createElement("div");
document.getElementById("gbar").appendChild(place);
place.style.position = "absolute";
place.style.top = "5px";
place.style.right = "5px";
place.style.margin = "0 auto";
place.style.background = "#00FEFE";
place.innerHTML += "  ";

And at last for french support :

fr: {
config : "Conf. Filtres URL",
add : "Ajouter",
edit : "Editer",
remove : "Effacer",
reset : "RàZ",
mode : "Filtrer le résultat",
ok : "Valider",
cancel : "Annuler",
block : "-Bloquer-",
blocked : "Bloqué !",
addPrefix : "Ajouter '",
addSuffix : "' aux filtres?",
addedPrefix: "'",
addedSuffix: "' est ajouté aux filtres.",
notEdited : "Non édité.",
notFound : "Pas trouvé.",
init : "Voulez vous vraiment réinitialiser vos filtres?",
},

 
Syockit Scriptwright

To Hatastix:
The filter uses Regexp convention. Please find a reference somewhere online.
For example, to achieve the one you mentioned, just add in this:
".*\.qarchive.org"

To Shinya:
Why block Hatena? You get to learn so many subcultural things from it! Very useful when watching Niconico Video. For example, what does (ry mean? If you check Hatena, you will already know that it means (以下略)!

 
Uldor User

Good script. I remember having looked for such an option in Google before. Thank you for creating it.

I suggest adding same support to Google images. I sometimes have pictures from one website cluttering a whole page or two of Google Images (due to my search hitting a keyword in a string of pictures on the webpage). It would be good to block it from coming up.

 
HatastiX User

Please consider adding wildcard support either

.qarchive.org
or
*.qarchive.org

to block that SPAMming domain and all subdomains

 
Minion Colle... User

also it would be fantastic if there were an easy way to import some SpamAssassin rules... to eliminate obviously spammy domains composed of mostly letters and such.

there would need to be a way to specify both the domain pattern and some spammy keywords like viagra, lottory, and other ilk. I realize that it a little beyond the scope of this userscript, but would make an interesting addon or entirely new junk filter userscript :D

 
Minion Colle... User

nifty! now I can more easily banish wiki*ia from my web experience. :D

I hope you will release a similar userscript for web searching with yahoo.com ;) ... and then maybe live.com search too...

thanks!

 
Shinya Script's Author

Please do AutoPagerize to the top of the scripts list on Greasemonkey.

This script doesn't operate on the added filter immediately. It's next time.

 
wooh Scriptwright

great, i like it!
just a small bug: doesn't filter second page in combination with Autopagerize.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel