[Greasemonkey] Google Suggest and Google Personal

Jan Swartling jan at swartling.net
Fri Jul 8 09:34:04 EDT 2005


I'm using a Greasemonkey script to use Google Suggest on all search forms on Google. However, it 
seams as if the Google Suggest script and Google Personal script uses the same variables. I get a 
JavaScript error saying:

Error: m.fixE is not a function
Source: http://www.google.com/ig/ig.js
Line: 10

var
m={"obj":null,"init":function(a){a.onmousedown=m.start;if(isNaN(parseInt(h().style.left)))h().style.left="0px";if(isNaN(parseInt(h().style.top)))h().style.top="0px";a.onDragStart=new
Function();a.onDragEnd=new Function();a.onDrag=new Function()}
,"start":function(a){var c=m.obj=this;a=m.fixE(a);var
b=parseInt(h().style.top);var
e=parseInt(h().style.left);c.onDragStart(e,b,a.clientX,a.clientY);c.lastMouseX=a.clientX;c.lastMouseY=a.clientY;document.onmousemove=m.drag;document.onmouseup=m.end;return
false}

This is the Greasemonkey script:
http://www.holovaty.com/code/firefox/greasemonkey/google_suggest.user.js

Fix: I think that renaming the variable 'm' in http://www.google.com/ig/ig.js will fix the error. 
Can this be done using Greasemonkey?

A related question: Am I violating any of the Google user terms by using
Google Suggest on every page?

Another problem I have with Google Suggest: when I use "shift" and try to copy any word in a "Google 
search window", it is deleted immediately. Is it possible to abort such function?

Jan



More information about the Greasemonkey mailing list