It seems that Google Search have committed to their new code for displaying Google Search results, after trialling the changes last week and then withdrawing them. The changes break the vital browser addon GoogleMonkeyR. A temporary fix is to edit the GoogleMonkeyR userscript thus…
Find…
var list = document.getElementsByXPath(".//div[@id='ires']/ol/li[starts-with(@class,'g')]/div/parent::li");
Replace with…
var list = document.getElementsByXPath(".//div[@id='ires']/ol/div[starts-with(@class,'srg')]/li");
Confirmed as working with Google.com search. Fails when you switch the keyword through to Google News.
UPDATE, NOV 2014.
Still working fine for me, with a few tweaks…
1. Updated Greasemonkey to 2.3 (29th Oct 2014) and GoogleMonkeyR to 1.7.2.
2. I access Google Search via this URL, which has a parameter that limits search results to 15 per page…
https://www.google.com/webhp?hl=en&complete=0&tbo=1&num=15&tbs=li:1
15 fits nicely in three columns, which I also have set up in GoogleMonkeyR Prefs — which is the cog-wheel that appears top-right once you make a Google search.
3. Hide the “Searches related to test” element on the Google Search results page, by using the AdBlock Plus addon (right-click on “”Searches related to test””, ‘Inspect Element’, highlight whole ‘extrares’ element, click on red AdblockPlus icon, block). This bit gets hidden because otherwise it sits awkwardly between you and the numbered links that lead to the subsequent results pages.
Temporary addon fix for the above fix, to add the first ‘featured result’ back into search results.
Find two instances of:
var list = document.getElementsByXPath(".//div[@id='ires']/ol/div[starts-with(@class,'srg')]/li");
These are most likely at line 1149 and 1339. Replace with:
var list = document.getElementsByXPath(".//div[@id='ires']/ol/li[starts-with(@class,'g')] | .//div[@id='ires']/ol/div[starts-with(@class,'srg')]/li");
This also fixed Google News + keyword, for me.
In the second instance, there should be this second parameter passed to the function: “, nextResult);”, like the line it replaces. Without it, infinite scroll is broken.
Thanks G. I use a fixed layout and so didn’t spot that… http://jurnsearch.wordpress.com/2013/12/23/10-steps-to-move-from-chrome-to-firefox/
News just in today… “Google is attempting to shunt users away from old browsers by intentionally serving up a stale version of the ad giant’s search homepage”. If it breaks, first upgrade your browser version.
Update: new 1.7.2 version at https://greasyfork.org/en/scripts/2978-googlemonkeyr and make sure you also upgrade Greasemonkey to the latest version. Both work together well for me.
v.1.7.2 – 31 Aug 2014 – by Boltex
– Bug fix: Google Changes in wdith in some divs
– Feature: Remove next page link and loading image.
*note* – If the results of the your search will go beyond the screen, you must find and change resolution. Find 1240px [in the script] and change to your value.
Pingback: 10 steps to move from Chrome to Firefox | News from JURN.org
Another update and fix, July 2015: https://jurnsearch.wordpress.com/2015/07/23/googlemonkeyr-fix-july-2015/