tag:blogger.com,1999:blog-12129687.post113491151018478332..comments2023-03-30T15:51:17.340+02:00Comments on Browservulsel: Google open all for Greasemonkey 0.6.4Unknownnoreply@blogger.comBlogger1125tag:blogger.com,1999:blog-12129687.post-1136282652092862712006-01-03T11:04:00.000+01:002006-01-03T11:04:00.000+01:00Thanks for this usefull script. There is still a ...Thanks for this usefull 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':<BR/>Original code<BR/>// var resultdiv = document.getElementsByTagName('div')[0];<BR/>My version:<BR/>var resultdiv = <BR/>document.evaluate("/html/body/div[./p[@class='g']]", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;<BR/><BR/>There are two places in your script where this have to be done.<BR/>Other than that, very nice script, thank your very much.Anonymousnoreply@blogger.com