os0x (owner)

Revisions

gist: 219324 Download_button fork
public
Public Clone URL: git://gist.github.com/219324.git
Embed All Files: show embed
post_ctrl_click.user.js #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// ==UserScript==
// @name post ctrl click
// @namespace http://ss-o.net/
// @include http*
// ==/UserScript==
// To: http://d.hatena.ne.jp/arikui/20091027/1256595816
Array.prototype.slice.call(document.querySelectorAll('input[type="text"],input:not([type])')).forEach(function(element){
if (!element.form)
return;
element.addEventListener("click", function(e){
if(e.ctrlKey)
element.form.submit();
}, false);
});