====== Middle click links ====== ===== Config version ===== In your uzbl config @bind = sh 'uzbl-browser -u \@SELECTED_URI' ===== Javascript version ===== ==== Description ==== Open links in a new instance by middle clicking on them. ==== middle_click.js ==== (function() { window.addEventListener("click", function(e) { if ( e.button == 1 // for middle click //|| e.ctrlKey // for ctrl + click ) { var new_uri = e.srcElement.href; if (new_uri) { ] e.stopPropagation(); e.preventDefault(); window.open(new_uri); } } }, false); })(); ==== Installation ==== Save the above script to a directory of your choice and add it to the load_commit_handler for example with: @on_event LOAD_COMMIT script @scripts_dir/middle_click.js