Google open all

By Jasper de Vries Last update Oct 21, 2009 — Installed 4,233 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 6 posts, 5 voices



Jesse Andrews Admin

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

 
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!...

 
ComputerJy User

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

 
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.

 
esquifit Scriptwright

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']]".

 
esquifit Scriptwright

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.

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