User:Enterprisey/superjump

Custom keyboard shortcuts to go to any page, and more!

Usage
You'll have to write a configuration file in the form of JSON. It'll be at Special:MyPage/superjump-config.json. You can see an example at User:Enterprisey/superjump-config.json. There is a tool available to write configuration files automatically, so you don't have to deal with JSON: apersonbot/superjump-configurer.

Once you've written a configuration, press the keyboard shortcuts on any page and they should work. Important gotcha: at the "first level" of keyboard shortcuts, you must use your browser's access keys. See WP:KBD for what those are (and a list of the many default MediaWiki shortcuts - you can override those defaults with this script).

For example, if my configuration looked like  and I were using Chrome on Windows, I would press Alt+Shift+A to go to the Main Page. Further levels do not require the extra keys. For example, if I had, I would press Alt+Shift+A, then release those keys, then press just B.

If you want to write configuration manually, the format is simple. It's just a JSON dictionary; the keys are the keys (funny how that worked out), and each value is either a string (a page name, to navigate there), or a dictionary (a submenu). Submenus can be arbitrarily nested, although you might get bored of pressing the keys. Example configurations:


 * - press access key "A" to go to the Main Page.
 * - press either access key "A" or "B" to open a submenu.