_@/ google blacklist

By crazysnailboy Last update Sep 20, 2008 — Installed 456 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 5 posts, 4 voices



Jesse Andrews Admin

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

 
crazysnailboy Script's Author

Robert, you're right - Google added a nobr tag to the page header which the script wasn't expecting. I've updated the code.

 
Robert Litzke Scriptwright

This script doesn't seem to work. I get an error on line 175, "elements.targetLink is undefined".

 
crazysnailboy Script's Author

Thanks for your feedback Michal, I've modified the script to include your fix :)

 
Michal Wojci... Scriptwright

Nice script. However, it doesn't work with non-English Google pages, as it tries to locate the English "Sign in" or "Sign out" text, which is obviously not present on non-English pages.

A quick fix that solved it for me was to replace the line:
get targetLink() { return document.getElementByXPath("//div[@id='header']/p[@id='gb']/a[text()='Sign in' or text()='Sign out']"); },

with:
get targetLink() { return document.getElementByXPath("//div[@id='header']/p[@id='gb']/a[contains(@href,'accounts/Log')]"); },

Now it checks the link's href attribute, rather than text.

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