···17171818You can click the extension icon, use keyboard shortcuts or right click the page or links. You can customize the keyboard shortcuts, what clicking the extension icon does, and what context menu items are visible.
19192020-# Dev Instructions
2020+## Dev Instructions
21212222-## Folder info
2323-`/src`
2424-`/src/modules`
2525-Files that should not be compiled/copies should be in the `/src/modules` folder.
2222+### Setup
2323+1. Install Node.js
2424+2. Run `npm install` to install dependencies
26252727-## Setup
2828-1. Install [Node.js](https://nodejs.org/) (Version 12.11 or later recommended)
2929-2. Run `npm install` to install dependencies
2626+### Commands
2727+- `npm run dev`: Build extension and watch for changes
2828+- `npm run build`: Build extension and create a zip in `/dist`, ready for distribution to stores
2929+- `npm run format`: Format code and apply code suggestions
3030+- `npm run check`: Check code
30313131-## Commands
3232-Build `/src` into `/build` and watch for changes. You can then load the `/build` folder as an unpacked extension in your browser.
3333-```
3434-npm run dev
3535-```
3232+## Permissions
3333+- `storage`: For storing the extension's settings
3434+- `contextMenus`: For the ability to open/copy/download from the right-click menu
3535+- `activeTab`: For inserting the popup into the current website
3636+- `clipboardWrite`: For copying thumbnails to the clipboard
3737+- `<all_urls>`: For checking if a thumbnail URL exists
3838+- Individual URLs: For showing the download popup on certain websites
36393737-Zip the extension into `/dist`, ready to be uploaded to the Chrome Web Store and such. You'll be prompted to type in the version number.
3838-```
3939-npm run zip
4040-```
4040+### Publish new version
4141+1. Run `npm run check`
4242+2. Update `CHANGELOG.md`
4343+3. Update version in `manifest.json`
4444+4. Run `npm run build`
4545+5. Commit with a tag in format "v#.#.#"
4646+6. Create GitHub release with the extension zip and release notes
4747+7. Publish to Chrome and Firefox stores