It works!
Kyrax was right, I modified the script and works like a charm on chrome 3.0.182.3
The final version is:
Thank you guys, now that I have gestures and adblock in chrome, I can change my primary browser to chromeCode:// ==UserScript== // @name Mouse Gestures for Google Chrome // @author vhanla // @namespace http://www.codigobit.net/ // @version 1.0 // @description Allows to use mouse gestures for navigating through pages // @include * // @exclude // ==/UserScript== (function() { var posx = 0; var posy = 0; var estado = false; var gestdown = function(event) { if (event.which) button = (event.which < 2) ? "LEFT" : ((event.which == 2) ? "MIDDLE" : "RIGHT"); if (button =="RIGHT"){ estado=true; posx=event.clientX; posy=event.clientY; document.oncontextmenu = new Function("return false") } } var gestup = function(event) { if (estado){ estado=false; if(event.clientX+25<posx){ window.history.back(); } else if(event.clientX-25>posx){ window.history.forward(); } else if(event.clientY-25>posy){ window.open(); } else if(event.clientY+25<posy){ window.close(); } else void(document.oncontextmenu=null) } } window.addEventListener("mousedown", gestdown, false); window.addEventListener("mouseup", gestup, false); })();
Cheers!


LinkBack URL
About LinkBacks




Reply With Quote
to see what what you are doing. Can it be done using the canvas Mr. Vic Gundotra (Google) was talking about as a new feature in HTML5? (I maybe talking crazy here
) 

