Re: [dev][surf] Next schedule?

From: hailukah <shaw.josh_AT_gmail.com>
Date: Thu, 1 Oct 2009 16:26:08 -0500

On Thu, 1 Oct 2009 21:20:39 +0200
Julien Steinhauser <Julien.Steinhauser_AT_orange.fr> wrote:

> On Thu, Oct 01, 2009 at 07:04:52AM -0500, hailukah wrote:
>
> > Speaking of middle click, is there a way to specify what it does?
> > I've searched through the webkitgtk documentation but haven't found
> > anything. I'd just like to middle click to open a link in a new
> > window. Even a javascript solution would be great.
> >
> >
> Hello, this function is from uzbl wiki, it does the trick.
>
> (function() {
> window.addEventListener("click", function(e) {
> if (e.button === 1) {
> var new_uri = e.srcElement.href;
> if (new_uri) {
> e.stopPropagation();
> e.preventDefault();
> window.open(new_uri);
> }
> }
> }, false);
> })();
>
>
>

Awesome, Thanks!
Received on Thu Oct 01 2009 - 21:26:08 UTC

This archive was generated by hypermail 2.2.0 : Thu Oct 01 2009 - 21:36:02 UTC