Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

Google open all

v0.6.1 - Opens all results on current page in new tabs

It adds a link at the top of the search results to open all (or some) results in a new window.

screendump

0.3.2: updated script to work under Greasemonkey 0.6.4.

0.4:

  • Option to open HTML version of PDF, DOC etc.
  • No longer based on the first DIV on the page.

0.5: fixed it to work with Google's restyled HTML output.

0.6: added quick language switch.

0.6.1: fix for new html structure at Google.






Dec 14, 2006
Constantine ... User

What about a new feature that downloads the results instead of just opening them?
That would be useful in companion with
"
keyword filetype:pdf
".
Maybe the stored file's name should be the first line of the result, and not just the name it has on the server.
Exempli gratia, the second result after searching for
environmetrics filetype:pdf
is
[PDF]
THE INTERNATIONAL ENVIRONMETRICS SOCIETY (TIES)
File Format: PDF/Adobe Acrobat - View as HTML
Regular membership (includes Volume 15 of Environmetrics, ... Cheque,
bank draft or money order payable to The International Environmetrics
Society ...
www.nrcse.washington.edu/ties/membership/REN-20... - Similar pages

That should be stored with the filename
"002 - THE INTERNATIONAL ENVIRONMETRICS
SOCIETY (TIES).pdf" or something like that and not "REN-2004.pdf"

002 is useful, because it implies the importance of the result (as it is second).

It's boring to use every time the mIRC script I had created for the same purpose...

Thank you in advance for your insightful work!...

 
Jan 29, 2006
ComputerJy User

I think the idea itself is terrible but it really works on IE, FireFox and Opera

 
Jan 7, 2006
Jasper de Vries Script's author

I've changed the script to no longer rely on the first DIV. Thanks for informing me about the problem.

 
Jan 3, 2006
esquifit User

Regarding my previous comment: I use another (unpublished) script of mine that also clashes with this one; there is a slightly better XPath for detecting the main div that circunvents this problem: "//div[.//p[@class='g']]".

 
Jan 3, 2006
esquifit User

Thanks for this useful 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 you very much.

You could comment on this script if you were logged in.