Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/webdeveric/prevent-shortcut-takeover-web-ext
Stop sites from taking over your keyboard shortcuts.
https://github.com/webdeveric/prevent-shortcut-takeover-web-ext
chrome-extension firefox-addon firefox-extension web-extension webextension
Last synced: about 1 month ago
JSON representation
Stop sites from taking over your keyboard shortcuts.
- Host: GitHub
- URL: https://github.com/webdeveric/prevent-shortcut-takeover-web-ext
- Owner: webdeveric
- License: mit
- Created: 2021-05-20T21:46:50.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-09-08T21:49:56.000Z (4 months ago)
- Last Synced: 2024-09-08T22:50:13.203Z (4 months ago)
- Topics: chrome-extension, firefox-addon, firefox-extension, web-extension, webextension
- Language: TypeScript
- Homepage: https://addons.mozilla.org/en-US/firefox/addon/prevent-shortcut-takeover/
- Size: 2.71 MB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# 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. `corepack enable`
1. `pnpm install`
1. `pnpm start`### Building the web extension
```shell
pnpm 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`.
```shell
pnpm sign --api-key=$WEB_EXT_API_KEY --api-secret=$WEB_EXT_API_SECRET
```### Signing a listed plugin
```shell
pnpm sign --channel=listed --api-key=$WEB_EXT_API_KEY --api-secret=$WEB_EXT_API_SECRET
```## Useful links
- https://hacks.mozilla.org/2019/10/developing-cross-browser-extensions-with-web-ext-3-2-0/
- https://extensionworkshop.com/documentation/develop/getting-started-with-web-ext/