[Greasemonkey] Greasemonkey 0.4 attempt II

Aaron Boodman zboogs at gmail.com
Wed Jul 6 23:07:47 EDT 2005


> window.addEventListener("click", function(e) {
>   if (e.target.tagName.toLowerCase() == "a" && e.altKeyArg && e.ctrlKeyArg) {
>     GM_openInTab(e.target.href);
>     e.preventDefault();
>   }
> }, false);

TOS wanted to activate links on mouseover, so this should be:

window.addEventListener("mouseover", ....

but other than that, looks good.


More information about the Greasemonkey mailing list