Page Keys is a template Firefox WebExtension for adding keyboard shortcuts to a webpage with Mousetrap.
To adapt it for a specific site:
- Edit
content.js
to include the desired keyboard shortcuts. - Edit
manifest.json
to change thename
,description
, andid
fields. - Edit
options/options.js
to set the default page url regular expression. - Update the Makefile if you want to change the xpi name
- Possibly change the icon in
icons
(and updatemanifest.json
).
Keyboard shortcuts are created using the Mousetrap library. The keyboard icon was taken from the Google Design Material Icons set.