Introduction
Introduction Statistics Contact Development Disclaimer Help
index.md - sites - public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log
Files
Refs
---
index.md (829B)
---
1 Middle click links
2 ==================
3
4 Description
5 -----------
6
7 This script must be deployed into the ~/.surf/user.js and one will be ab…
8 in a new window with middleclick or with control click.
9
10 (function() {
11 window.addEventListener("click", function(e) {
12 if (
13 e.button == 1 // for middle click
14 //|| e.ctrlKey // for ctrl + click
15 ) {
16 var new_uri = e.srcElement.href;
17 if (new_uri) {
18 e.stopPropagation();
19 e.preventDefault();
20 window.open(new_uri);
21 }
22 }
23 }, false);
24 })();
25
26 Author
27 ------
28
29 * Original author n30n , actual revision chm.duquesne.
30
31 The last version of this script is
32 [here](http://www.uzbl.org/wiki/middle_click_links)
33 under a [CC Attribution-Noncommercial-Share Alike 3.0 Unported license](…
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.