[Userscript] Custom Shortcuts

Marker
My Little Pony - 1992 Edition
Wallet After Summer Sale -
Magnificent Metadata Maniac - #1 Assistant
Not a Llama - Happy April Fools Day!

Misanthrope
Do you sometimes wish Derpibooru's keyboard shortcuts can be customized? Do you sometimes wish for even more shortcut options? Or do you simply wish for a way to disable some of the site's shortcuts?

If your answer is yes, then this is the script for you!

Derpibooru Custom ShortcutsGithub page

Custom Shortcuts is an userscript that enables the customization of the site's original keyboard shortcuts plus many additional functions, including a keyboard navigation mode.

Installation
An userscript manager such as Violentmonkey is required.

- Install from OpenUserJS
- Install from Github

User guide
Upon installation, the script makes no changes or additions to Derpibooru's default shortcuts. Instead users should open up settings panel with ctrl + shift + / to begin customization.

The script have 3 fully configurable preset slots, and the ability to switch between them with the keybinds alt + [1-3] by default.

By default preset 1 is preconfigured with the recommended keybinds, optimized for left hand operation, as a starting point for customizations.

Keyboard navigation mode
Toggle on and off with the Q key by default. When enabled, the scroll up/down/left/right keys can be used to highlight thumbnails on the image results page. Images can be navigated to with the E key, and the favorite/upvote/mute shortcuts will be applied to the selected image.

Special keybinds
ctrl + shift + /: Toggles the settings panel.

Esc: Deselects any input fields or text areas.


List of all configurable shortcuts
- Scroll up/down/left/right

- Enable keyboard navigation of gallery

- Open selected image when keyboard navigation is enabled

- Open selected image in new tab

- Open selected image in background tab

- Previous/next page

- Open source URL

- Random image

- Upvote image

- Favourite image

- Go to index page containing the image being displayed

- Open tags for editing

- Save tags:
If you want to submit the tags while the caret is still in the fancy tag editor, the keybind must include the ctrl or alt modifier. Otherwise press Esc to deselect it first.

- Cycle through image scaling

- Play/pause webms

- Mute/unmute webms

- Focus on search field

- Focus on comment form

- Refresh comment list

- Go back/forward in browser history

Screenshot



Interested in advertising on Derpibooru? Click here for information!
Ministry of Image - Fanfiction Printing

Derpibooru costs over $25 a day to operate - help support us financially!

Syntax quick reference: *bold* _italic_ [spoiler]hide text[/spoiler] @code@ +underline+ -strike- ^sup^ ~sub~