Go to file
James Skemp c095442946 Remove non-working commented out code 2023-01-08 14:14:51 -06:00
images Add basic extension logic to show simple badge text 2023-01-07 22:14:58 -06:00
src Remove non-working commented out code 2023-01-08 14:14:51 -06:00
.gitignore Initial commit 2023-01-08 03:42:03 +00:00
.parcelrc Initial commit 2023-01-08 03:42:03 +00:00
README.md Add working version of focus mode extension 2023-01-08 14:09:04 -06:00
manifest.json Add working version of focus mode extension 2023-01-08 14:09:04 -06:00
package-lock.json Add basic extension logic to show simple badge text 2023-01-07 22:14:58 -06:00
package.json Add basic extension logic to show simple badge text 2023-01-07 22:14:58 -06:00
tsconfig.json Add working version of focus mode extension 2023-01-08 14:09:04 -06:00

README.md

Chrome Extension: Focus Mode

Following https://developer.chrome.com/docs/extensions/mv3/getstarted/tut-focus-mode/

Due to a Parcel limitation, in that it's not parsing insertCss, and therefore not adding the CSS, this extension has some tweaks. The manifest file adds the custom CSS to the site, but the extension toggles a class on the body of set pages.

npm run build

Permissions

  • activeTab: User must choose to run the extension on the active tab.
    • Grants temporary access.
    • Doesn't trigger a permission warning.
  • scripting
    • Allows inserting/removing stylesheets.
    • Doesn't trigger a permission warning.