├── .editorconfig ├── .github └── workflows │ ├── ci.yml │ └── esm-lint.yml ├── .gitignore ├── .npmignore ├── .npmrc ├── .parcelrc ├── contributing.md ├── how-to-add-github-enterprise-support-to-web-extensions.md ├── jest-puppeteer.config.cjs ├── license ├── package.json ├── readme.md ├── source ├── __snapshots__ │ ├── deduplicator.test.ts.snap │ └── lib.test.ts.snap ├── deduplicator.test.ts ├── deduplicator.ts ├── index.ts ├── inject-to-existing-tabs.ts ├── lib.test.ts ├── lib.ts ├── register-content-script-shim.ts ├── utils.test.ts └── utils.ts ├── test ├── browser.js ├── demo-extension │ ├── mv2 │ │ ├── background.js │ │ ├── content.css │ │ ├── content.js │ │ ├── local.html │ │ └── manifest.json │ ├── mv3 │ │ ├── background.js │ │ ├── content.css │ │ ├── content.js │ │ └── manifest.json │ └── webext-permissions.js └── package.json ├── tsconfig.json ├── usage-mv2.md ├── utils.d.ts ├── utils.js ├── vitest.config.js └── vitest.setup.js /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fregante/webext-dynamic-content-scripts/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fregante/webext-dynamic-content-scripts/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/esm-lint.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fregante/webext-dynamic-content-scripts/HEAD/.github/workflows/esm-lint.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fregante/webext-dynamic-content-scripts/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fregante/webext-dynamic-content-scripts/HEAD/.npmignore -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | legacy-peer-deps=true 2 | -------------------------------------------------------------------------------- /.parcelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fregante/webext-dynamic-content-scripts/HEAD/.parcelrc -------------------------------------------------------------------------------- /contributing.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fregante/webext-dynamic-content-scripts/HEAD/contributing.md -------------------------------------------------------------------------------- /how-to-add-github-enterprise-support-to-web-extensions.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fregante/webext-dynamic-content-scripts/HEAD/how-to-add-github-enterprise-support-to-web-extensions.md -------------------------------------------------------------------------------- /jest-puppeteer.config.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fregante/webext-dynamic-content-scripts/HEAD/jest-puppeteer.config.cjs -------------------------------------------------------------------------------- /license: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fregante/webext-dynamic-content-scripts/HEAD/license -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fregante/webext-dynamic-content-scripts/HEAD/package.json -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fregante/webext-dynamic-content-scripts/HEAD/readme.md -------------------------------------------------------------------------------- /source/__snapshots__/deduplicator.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fregante/webext-dynamic-content-scripts/HEAD/source/__snapshots__/deduplicator.test.ts.snap -------------------------------------------------------------------------------- /source/__snapshots__/lib.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fregante/webext-dynamic-content-scripts/HEAD/source/__snapshots__/lib.test.ts.snap -------------------------------------------------------------------------------- /source/deduplicator.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fregante/webext-dynamic-content-scripts/HEAD/source/deduplicator.test.ts -------------------------------------------------------------------------------- /source/deduplicator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fregante/webext-dynamic-content-scripts/HEAD/source/deduplicator.ts -------------------------------------------------------------------------------- /source/index.ts: -------------------------------------------------------------------------------- 1 | import {init} from './lib.js'; 2 | 3 | init(); 4 | -------------------------------------------------------------------------------- /source/inject-to-existing-tabs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fregante/webext-dynamic-content-scripts/HEAD/source/inject-to-existing-tabs.ts -------------------------------------------------------------------------------- /source/lib.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fregante/webext-dynamic-content-scripts/HEAD/source/lib.test.ts -------------------------------------------------------------------------------- /source/lib.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fregante/webext-dynamic-content-scripts/HEAD/source/lib.ts -------------------------------------------------------------------------------- /source/register-content-script-shim.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fregante/webext-dynamic-content-scripts/HEAD/source/register-content-script-shim.ts -------------------------------------------------------------------------------- /source/utils.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fregante/webext-dynamic-content-scripts/HEAD/source/utils.test.ts -------------------------------------------------------------------------------- /source/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fregante/webext-dynamic-content-scripts/HEAD/source/utils.ts -------------------------------------------------------------------------------- /test/browser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fregante/webext-dynamic-content-scripts/HEAD/test/browser.js -------------------------------------------------------------------------------- /test/demo-extension/mv2/background.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fregante/webext-dynamic-content-scripts/HEAD/test/demo-extension/mv2/background.js -------------------------------------------------------------------------------- /test/demo-extension/mv2/content.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fregante/webext-dynamic-content-scripts/HEAD/test/demo-extension/mv2/content.css -------------------------------------------------------------------------------- /test/demo-extension/mv2/content.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fregante/webext-dynamic-content-scripts/HEAD/test/demo-extension/mv2/content.js -------------------------------------------------------------------------------- /test/demo-extension/mv2/local.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fregante/webext-dynamic-content-scripts/HEAD/test/demo-extension/mv2/local.html -------------------------------------------------------------------------------- /test/demo-extension/mv2/manifest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fregante/webext-dynamic-content-scripts/HEAD/test/demo-extension/mv2/manifest.json -------------------------------------------------------------------------------- /test/demo-extension/mv3/background.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fregante/webext-dynamic-content-scripts/HEAD/test/demo-extension/mv3/background.js -------------------------------------------------------------------------------- /test/demo-extension/mv3/content.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fregante/webext-dynamic-content-scripts/HEAD/test/demo-extension/mv3/content.css -------------------------------------------------------------------------------- /test/demo-extension/mv3/content.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fregante/webext-dynamic-content-scripts/HEAD/test/demo-extension/mv3/content.js -------------------------------------------------------------------------------- /test/demo-extension/mv3/manifest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fregante/webext-dynamic-content-scripts/HEAD/test/demo-extension/mv3/manifest.json -------------------------------------------------------------------------------- /test/demo-extension/webext-permissions.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fregante/webext-dynamic-content-scripts/HEAD/test/demo-extension/webext-permissions.js -------------------------------------------------------------------------------- /test/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "module" 3 | } 4 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fregante/webext-dynamic-content-scripts/HEAD/tsconfig.json -------------------------------------------------------------------------------- /usage-mv2.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fregante/webext-dynamic-content-scripts/HEAD/usage-mv2.md -------------------------------------------------------------------------------- /utils.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fregante/webext-dynamic-content-scripts/HEAD/utils.d.ts -------------------------------------------------------------------------------- /utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fregante/webext-dynamic-content-scripts/HEAD/utils.js -------------------------------------------------------------------------------- /vitest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fregante/webext-dynamic-content-scripts/HEAD/vitest.config.js -------------------------------------------------------------------------------- /vitest.setup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fregante/webext-dynamic-content-scripts/HEAD/vitest.setup.js --------------------------------------------------------------------------------