Google Un-safe Search

By JoeSimmons Last update Sep 3, 2009 — Installed 8,682 times.

i think i know how to make this a little better

in
Subscribe to i think i know how to make this a little better 2 posts, 2 voices



scriptnoob User

right now, because the script is told to run on:
http://www.google.*/

when you go to pages like:
http://www.google.com/intl/en/contact/

you can get page load errors because &safe=off gets added to the url there when you don't need it.

here is how i think i've made it better:

change line 15 to this:
homeTest = /(^http\:\/\/www\.google\.\w+\.?\w*\/webhp)|(^http\:\/\/images\.google\.\w+\.?\w*\/imghp)|(^http\:\/\/www\.google\.\w+\.?\w*\/$)/i;

then have the includes be:

http://images.google.*/images?*q=*
http://www.google.tld/
http://www.google.*/webhp*
http://images.google.*/imghp*

and have this as the exclude:
http://*.google.*/*&safe=off*

also, if you do it this way, you don't need to exclude reader, notebook, etc. because this takes care of those.

 
JoeSimmons Script's Author

you can get page load errors because &safe=off gets added to the url there when you don't need it.

Actually I designed it so it wouldn't do that but I see the error. There's no 100% way around it from where I see it. I'm going to make it http://www.google.tld/ and then just add other TLD's that aren't included in the TLD shortcut.

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