2005-12-18

Google open all for Greasemonkey 0.6.4

I've updated the Google open all user script (original post) to work with Greasemonkey 0.6.4.

1 comment:

Anonymous said...

Thanks for this usefull script. There is still a little problem in that it interferes with others scripts that insert DIVs before the main results DIV, such as 'Babel Mousish' (http://userscripts.org/scripts/show/1808). You cannot rely on the assumption that the first div is the main one. I've altered the script so that it now looks for the DIV containing a P child of class 'g':
Original code
// var resultdiv = document.getElementsByTagName('div')[0];
My version:
var resultdiv =
document.evaluate("/html/body/div[./p[@class='g']]", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;

There are two places in your script where this have to be done.
Other than that, very nice script, thank your very much.