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.
- Number Google Results
This script will automatically number all Google search results for you.

48 Comments
Innovative, thanks!
#1, Noah, United States, 8 May 2006. Reply to this.
Sorry, but I donno what to do with it, how to ope it?
huh
#2, Sajko, Poland, 23 July 2006. Reply to this.
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!
#3, Anonymous, United Kingdom, 15 November 2006. Reply to this.
Mine stopped working too. I thought maybe my browser was misbehaving, so I tested in 4 different browsers on 2 platforms, and no joy. :(
#4, Sonja Ray, United States, 15 November 2006. Reply to this.
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.
#5, gugo, Germany, 16 November 2006. Reply to this.
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.
#6, Michiel, Germany, 16 November 2006. Reply to this.
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.
#7, Dave Child, United Kingdom, 16 November 2006. Reply to this.
Thank you very much for your fast work and excellent scripts. Keep up the good work!
#8, Captain Seeb, United Kingdom, 16 November 2006. Reply to this.
Thank you! You're a jewel!
#9, Sonja Ray, United States, 17 November 2006. Reply to this.
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?
#10, gugo, Germany, 17 November 2006. Reply to this.
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?
#11, gugo, Germany, 17 November 2006. Reply to this.
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);
.....
#12, gugo, Germany, 17 November 2006. Reply to this.
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
#13, Brett, United States, 21 November 2006. Reply to this.
Also, add num=# to have more results displayed.
http://www.google.com/ie?num=100
#14, Brett, United States, 21 November 2006. Reply to this.
Awesome! Search engines are useful once again!
#15, Rosewater, Unknown, 22 November 2006. Reply to this.
Thx for information! I Collect SEO-plugins.
#16, tobto, Ukraine, 22 November 2006. Reply to this.
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.
#17, rosewater, United States, 12 December 2006. Reply to this.
Thankx so much for this information., was giving cool results.,
#18, Veeresh, India, 27 December 2006. Reply to this.
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...
#19, Christoph, Germany, 5 January 2007. Reply to this.
Two nice scripts. Thanks to Dave and thanks to Christoph for the links.
#20, Stefan, Germany, 24 January 2007. Reply to this.
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.
#21, Bob Gladstein, United States, 5 May 2007. Reply to this.
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.
#22, Michiel, Germany, 19 July 2007. Reply to this.
Thank you so MUCH!!!
#23, Wil Reynolds, United States, 20 July 2007. Reply to this.
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?
#24, wendy, United States, 28 August 2007. Reply to this.
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!
#25, Romily, United Kingdom, 18 October 2007. Reply to this.
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?
#26, Bob Gladstein, United States, 2 February 2008. Reply to this.
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.
#27, Kevin, United States, 18 March 2008. Reply to this.
This is a fantastic add-on to and now essential to my every day SEO tasks, thanks!
#28, stebal4, United Kingdom, 19 March 2008. Reply to this.
It seems to have broken for me.
#29, Anon, Unknown, 21 August 2008. Reply to this.
This fantasic script has stopped working help....
#30, Dan Taylor, Unknown, 21 August 2008. Reply to this.
Hi there,
This script stopped working, because of the fact that Google changed H2 to H3 tags. Could you please adjust the script.
Thanks!
#31, Robbert, Netherlands, 21 August 2008. Reply to this.
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!
#32, Dave Child, United Kingdom, 21 August 2008. Reply to this.
Still doesnt appear to be working. I uninstalled the script then downloaded again but no joy.
Any advice?
#33, Dan Taylor, Unknown, 21 August 2008. Reply to this.
Can you email me a search results page where it's not working? It's working fine for me in FF3.
#34, Dave Child, United Kingdom, 21 August 2008. Reply to this.
I edited the script and changed 'div' to 'li' and its working now
#35, Dan Taylor, Unknown, 21 August 2008. Reply to this.
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.
#36, Dave Child, United Kingdom, 21 August 2008. Reply to this.
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!
#37, ramenboy, United States, 22 August 2008. Reply to this.
Thanks for the update! It was quite annoying having to revert to count on my fingers...;)
#38, Cory, United States, 31 August 2008. Reply to this.
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
#39, aavindraa, Unknown, 1 September 2008. Reply to this.
Hi, great script!
However, on 20 November 2008, Google introduced SearchWiki, which allows users to customize their search results. This broke the Numbered Google Results script.
There's a really simple fix for it. I've posted instructions on how to do it on my blog for any that are interested:
http://www.scratch99.com/2008/11/searchwiki-breaks-numbered-google-results-easy-fix/
I hope you can build this into the script in future so there's no need for the hack. Cheers!
#40, Stephen Cronin, Brisbane, 22 November 2008. Reply to this.
I loved your script, but had a problem. Sometimes my browser (Mozilla 3) shows the proper numbering sometimes not..
#41, Tushar, India, 11 February 2009. Reply to this.
Thanks for the original idea, and also to S. Cronin above for the update
#42, Steve ( Web Hosting UK ), United Kingdom, 12 February 2009. Reply to this.
Great script! Just what Ive been looking for. Works perfect for me
#43, Rick, United Kingdom, 22 May 2009. Reply to this.
I have been unable to make this script work with firefox 3.0.10 on Mac OS 10.5.6. Has Google changed their code again? I am desperate to have this feature!
Thanks if you can help
#44, Pete, New Zealand, 26 May 2009. Reply to this.
Since the Google Caffeine update this script has stopped working. Has anyone any idea how to fix it?
#45, Ed, Manchester, 1 September 2009. Reply to this.
The http://www.customizegoogle.com tool also doesn't work in the new Google Caffeine results.
Does anyone know of any way to get the results numbering back?
#46, Ed (eBay Shop Design), UK, 1 September 2009. Reply to this.
Hi,
I've written a Greasemonkey script which will work with the new AJAX powered search results and SearchWiki (as per my comment above). For anyone who's interested, see:
http://userscripts.org/scripts/show/57306
Dave, if you upgrade your script let me know - I don't mind pointing people back to your script if it's working. Cheers.
#47, Stephen Cronin, Australia, 9 September 2009. Reply to this.
Mine stopped working too. I thought maybe my browser was misbehaving, so I tested in 4 different browsers on 2 platforms, and no joy. :(
#48, Mucing, Indonesia, 15 December 2009. Reply to this.