Skip Navigation

Numbered Google Results User Script

Update: This user script was last updated 21 August 2008 following changes to Google results page code.

Greasemonkey is a truly impressive addition to Firefox and will be IS a nice addition to Opera 8. In simple terms, it allows you to write custom JavaScripts to run on any sites you like (or even all sites). There is a fairly healthy group of scripts already available, and many more surely on the way.

39 comments

Noah
United States #1: May 8, 2006
Innovative, thanks!
Sajko
Poland #2: July 24, 2006
Sorry, but I donno what to do with it, how to ope it?

huh
Anonymous
United Kingdom #3: November 15, 2006
Oh no, it's stopped working! I guess that Google have changed how the pages are constructed or something. Do you have any suggestions about how to alter the script? This is such a great tool!
Mine stopped working too. I thought maybe my browser was misbehaving, so I tested in 4 different browsers on 2 platforms, and no joy. :(
gugo
Germany #5: November 16, 2006
mine also stopped to work..

I work in english, german, spanish and all the googles have the same thing.

i think we have to learn how to programm java scripts..

I have saved old google pages and with the old ones, works good.
Sometimes you realize how much you appreciate something, after it's gone, like numbered Google Results.
Unfortunately I can't code Javascript, but I do am interested what -I guess- Google changed, that the script to stopped working.
Bah. Dammit Google. Why do you have to change your code and STILL NOT MADE IT GOOD QUALITY CODE? I despair sometimes.

The user script is fixed. Sorry I didn't get it done sooner.
Captain Seeb
United Kingdom #8: November 16, 2006
Thank you very much for your fast work and excellent scripts. Keep up the good work!
Sonja Ray
United States #9: November 17, 2006
Thank you! You're a jewel!
For those who keep the old-style google pages in backup (for me are proofs for customers that dont believe his results watching numbers only)

For numbering the old pages I suggest to create a bookmark but instead of insert a classic "http " put this:

name: number results google before nov 16 ( example)
LOCATION (HERE COPY PASTE)--> :
javascript:function q(key){var value=null;for(var i=0;i<q.keys.length;i++){if (q.keys[i]==key){value=q.values[i];break;}}return value;}q.keys=new Array();q.values=new Array();function q_Parse(){var query=window.location.search.substring(1);var pairs=query.split('&');for(var i=0;i<pairs.length;i++){var pos=pairs[i].indexOf('=');if (pos>=0){var a=pairs[i].substring(0,pos);var value=pairs[i].substring(pos+1);q.keys[q.keys.length]=a;q.values[q.values.length]=value;}}}q_Parse();var j=0;var s=q('start');if(s==null){s=0;}s=parseInt(s)+1;function n(){ps=document.getElementsByTagName('p');for (pi=0;pi<ps.length;pi++){tp=ps[pi];if(tp.className=='g'){w=s+j;tp.innerHTML=w+'. '+tp.innerHTML;j++;}}}; n(); void 0

It helps you?
The post with the javascript it works only for FIREFOX, notice that please.

BTW the script worked for me only once.. then never again.

Could be a problem of the GREASEMONKEY?

Anyone has noticed that?
Why doesnt work on Opera well and maybe in firefox neither....could be because o this?

Error:
Unhandled exception: [Object InternalException]
code: 6
message: WRONG_ARGUMENTS_ERR
Backtrace:
Line 159 of User JS script
window.addEventListener("load", go(), false);
.....
I haven't looked at the script so this may be different but google will number the results for you.

http://www.google.com/ie
Also, add num=# to have more results displayed.

http://www.google.com/ie?num=100
Awesome! Search engines are useful once again!
Thx for information! I Collect SEO-plugins.
Hey brett, when you use the /ie search, you can't see where your site is in the ranking, unless you've memorized every title tag.
Thankx so much for this information., was giving cool results.,
The Firefox-Extension "CustomizeGoogle" has an option to the same.
You can get ist here: http://www.customizegoogle.com/ or here: https://addons.mozilla.org/firefox/743/
Hope you like it...
Two nice scripts. Thanks to Dave and thanks to Christoph for the links.
It looks like they've changed their code again. Your script isn't working, and I tried installing the Customize Google extension to try to get the same functionality, but no luck.
Unfortunately Google Labs new Keyboard shortcuts don't work properly icm with your script. See for example:
http://www.google.com/search?q=rattlesnake&hl=en&esrch=BetaShortcuts&start=10&sa=N

I also have send this message to Google, inlcuding a request for a keyboard shortcut for numbering the Google results.
Thank you so MUCH!!!
wendy
United States #24: August 28, 2007
i do have a write to say what i want to and no one can tell me any different so all i got to say is i'll be leaving right so i will log out now and see ya soon again love you?
Many thanks for making this Google numbering script available - most helpful, and brings Google search results more in line with Yahoo!'s ease of use.

Thanks, too, for drawing attention to the benefits of GreaseMonkey - a great find!
I don't suppose you know of a script that will number Yahoo results, now that they've dropped the numbers for some reason.

And while we're at it, how about Ask?
 United States #27: March 18, 2008
It doesn't work anymore. It was working yesterday. I guess I don't have a reason to use Firefox anymore. Hopefully they'll update it.
This is a fantastic add-on to and now essential to my every day SEO tasks, thanks!
Anon
Unknown #29: August 21, 2008
It seems to have broken for me.
Dan Taylor
Unknown #30: August 21, 2008
This fantasic script has stopped working help....
Hi there,

This script stopped working, because of the fact that Google changed H2 to H3 tags. Could you please adjust the script.

Thanks!
The problem was Google switched to using <li> instead of <div> for some of the result titles (but not all). I've updated the script to reflect the change, and it seems fine - let me know if you have any problems!
Dan Taylor
Unknown #33: August 21, 2008
Still doesnt appear to be working. I uninstalled the script then downloaded again but no joy.

Any advice?
Can you email me a search results page where it's not working? It's working fine for me in FF3.
Dan Taylor
Unknown #35: August 21, 2008
I edited the script and changed 'div' to 'li' and its working now
Dan: Better to change it to "*" - listings with images (like when they add YouTube videos to results) use a div with the li nested, but the class the script looks for is on the div in that case, unlike the rest where it's on the li.
ramenboy
United States #37: August 22, 2008
It looks like Google made a change and the script no longer works as of today. I used it all day yesterday. I confirmed it with others in our office.

Love this script! I hope you can update it so we can continue to use it!
 United States #38: August 31, 2008
Thanks for the update! It was quite annoying having to revert to count on my fingers...;)
Innovative script, but this here: https://addons.mozilla.org/en-US/firefox/addon/743 does that and more.

I didn't even notice google didn't number it because I had the addon o__O

Post Your Comment

· Comments with keywords instead of a name have their URLs removed.
· Your email address will not be displayed or shared.

Live Comment Preview

 United States #40: 1 minute ago