webdeveric / prevent-shortcut-takeover-web-ext

Stop sites from taking over your keyboard shortcuts.

Home Page:https://addons.mozilla.org/en-US/firefox/addon/prevent-shortcut-takeover/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prevent Shortcut Takeover

Stop sites from taking over your keyboard shortcuts.

Defaults to preventing sites from taking over ctrl+k and ctrl+l (cmd on Mac).

You can add your own shortcuts in the extension options.

Install

You can get this addon at https://addons.mozilla.org/en-US/firefox/addon/prevent-shortcut-takeover/

Local development

  1. npm ci
  2. npm start

Building the web extension

npm run build

The zip output will be in the ./build folder.

Extension signing for Firefox

Define your api key / secret in your environment then run the following.

Credentials can be found at https://addons.mozilla.org/en-US/developers/addon/api/key/

This generates an xpi file and it will be put in ./build.

npm run sign -- --api-key=$WEB_EXT_API_KEY --api-secret=$WEB_EXT_API_SECRET

Signing a listed plugin

npm run sign -- --channel=listed --api-key=$WEB_EXT_API_KEY --api-secret=$WEB_EXT_API_SECRET

Useful links

About

Stop sites from taking over your keyboard shortcuts.

https://addons.mozilla.org/en-US/firefox/addon/prevent-shortcut-takeover/

License:MIT License


Languages

Language:TypeScript 68.1%Language:JavaScript 21.9%Language:CSS 9.2%Language:HTML 0.7%