public
Last active

GM_registerMenuCommand() accelerator tester

  • Download Gist
gm-rmc-accelerator-tester.user.js
JavaScript
1 2 3 4 5 6
// ==UserScript==
// @name GM_registerMenuCommand() accelerator tester
// @namespace http://arantius.com/misc/greasemonkey/
// @description A flexible test script for examining if/how GM_rmc's accelerator keys work
// @include about:blank#GM_rmc
// ==/UserScript==
ui.html
HTML
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
<table>
<tr>
<td>Modifiers:</td>
<td id="modifiers">
<input type="checkbox" value="shift"> Shift<br>
<input type="checkbox" value="alt"> alt<br>
<input type="checkbox" value="meta"> meta<br>
<input type="checkbox" value="control"> Control<br>
<input type="checkbox" value="accel"> accel<br>
<input type="checkbox" value="access"> access<br>
<input type="checkbox" value="any"> any<br>
</td>
</tr>
<tr>
<td>Accelerator key:</td>
<td><input type="text" size="1" maxlength="1" id="accelerator"></td>
</tr>
<tr>
<td></td>
<td><button id="register">Register this menu command</button></td>
</tr>
</table>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.