Forum Moderators: Robert Charlton & goodroi
After adding the code below to your favourites you could perform a Google search and then run the command which would number the results. It was very useful to see that a particular site was at number 37 etc. without having to manually count...
I've noticed that this script stopped working a while back.
I've tried searching for the thread and any info without success - can anyone shed any light on this?
Thanks in advance.
This is the code:
javascript:var p=document.getElementsByTagName('p');var j=1;function gc(){for(i=0;i<p.length;i++){if(p[i].className=='g'){p[i].innerHTML=j+'. '+p[i].innerHTML;j++;}};};gc();
Google has changed - the 'P' now needs to be 'div'.
So the code that works is:
javascript:var p=document.getElementsByTagName('div');var j=1;function gc(){for(i=0;i<p.length;i++){if(p[i].className=='g'){p[i].innerHTML=j+'. '+p[i].innerHTML;j++;}};};gc();
For those that haven't seen this useful script...
To numerically number the results after performing a search in Google you can perform the search and then either paste the above code in the address bar which will number the results - or add the command as a favourite/bookmark. This then means that you can simply number the results by clicking the favourite.
There's also one to number MSN results that works on Live and MSN search. (I might have edited it to add Live.. I can't remember.)
Very handy, and for me easier than a bookmarklet since once it's enabled, it's always enabled until it's turned off.