extension-create 2.0.0-alpha.26 → 2.0.0-alpha.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.js +21 -21
- package/package.json +1 -1
- package/dist/test-template-action/README.md +0 -35
- package/dist/test-template-action/action/index.html +0 -40
- package/dist/test-template-action/action/scripts.js +0 -11
- package/dist/test-template-action/action/styles.css +0 -23
- package/dist/test-template-action/images/extension_128.png +0 -0
- package/dist/test-template-action/images/extension_16.png +0 -0
- package/dist/test-template-action/images/extension_48.png +0 -0
- package/dist/test-template-action/manifest.json +0 -21
- package/dist/test-template-action/package.json +0 -21
- package/dist/test-template-action-chatgpt/.env.example +0 -1
- package/dist/test-template-action-chatgpt/README.md +0 -35
- package/dist/test-template-action-chatgpt/action/ActionApp.tsx +0 -118
- package/dist/test-template-action-chatgpt/action/index.html +0 -13
- package/dist/test-template-action-chatgpt/action/scripts.tsx +0 -12
- package/dist/test-template-action-chatgpt/action/styles.css +0 -8
- package/dist/test-template-action-chatgpt/images/chatgpt.png +0 -0
- package/dist/test-template-action-chatgpt/images/extension.png +0 -0
- package/dist/test-template-action-chatgpt/images/extension_128.png +0 -0
- package/dist/test-template-action-chatgpt/images/extension_16.png +0 -0
- package/dist/test-template-action-chatgpt/images/extension_48.png +0 -0
- package/dist/test-template-action-chatgpt/manifest.json +0 -21
- package/dist/test-template-action-chatgpt/package.json +0 -30
- package/dist/test-template-action-chatgpt/postcss.config.js +0 -6
- package/dist/test-template-action-chatgpt/tailwind.config.js +0 -8
- package/dist/test-template-action-chatgpt/tsconfig.json +0 -22
- package/dist/test-template-config-babel/README.md +0 -35
- package/dist/test-template-config-babel/babel.config.json +0 -4
- package/dist/test-template-config-babel/extension.config.js +0 -17
- package/dist/test-template-config-babel/images/babel.png +0 -0
- package/dist/test-template-config-babel/images/extension_128.png +0 -0
- package/dist/test-template-config-babel/images/extension_16.png +0 -0
- package/dist/test-template-config-babel/images/extension_48.png +0 -0
- package/dist/test-template-config-babel/manifest.json +0 -15
- package/dist/test-template-config-babel/newtab/index.html +0 -40
- package/dist/test-template-config-babel/newtab/scripts.js +0 -11
- package/dist/test-template-config-babel/newtab/styles.css +0 -22
- package/dist/test-template-config-babel/package.json +0 -24
- package/dist/test-template-config-stylelint/.stylelintrc.json +0 -3
- package/dist/test-template-config-stylelint/README.md +0 -35
- package/dist/test-template-config-stylelint/images/extension_128.png +0 -0
- package/dist/test-template-config-stylelint/images/extension_16.png +0 -0
- package/dist/test-template-config-stylelint/images/extension_48.png +0 -0
- package/dist/test-template-config-stylelint/images/stylelint.svg +0 -1
- package/dist/test-template-config-stylelint/manifest.json +0 -15
- package/dist/test-template-config-stylelint/newtab/index.html +0 -40
- package/dist/test-template-config-stylelint/newtab/scripts.js +0 -11
- package/dist/test-template-config-stylelint/newtab/styles.scss +0 -20
- package/dist/test-template-config-stylelint/package.json +0 -24
- package/dist/test-template-content/README.md +0 -35
- package/dist/test-template-content/background.js +0 -21
- package/dist/test-template-content/content/scripts.js +0 -32
- package/dist/test-template-content/content/styles.css +0 -54
- package/dist/test-template-content/images/extension_128.png +0 -0
- package/dist/test-template-content/images/extension_16.png +0 -0
- package/dist/test-template-content/images/extension_48.png +0 -0
- package/dist/test-template-content/manifest.json +0 -35
- package/dist/test-template-content/package.json +0 -20
- package/dist/test-template-content-css-module/README.md +0 -35
- package/dist/test-template-content-css-module/background.js +0 -21
- package/dist/test-template-content-css-module/content/Logo.module.css +0 -11
- package/dist/test-template-content-css-module/content/scripts.js +0 -33
- package/dist/test-template-content-css-module/content/styles.css +0 -40
- package/dist/test-template-content-css-module/images/extension_128.png +0 -0
- package/dist/test-template-content-css-module/images/extension_16.png +0 -0
- package/dist/test-template-content-css-module/images/extension_48.png +0 -0
- package/dist/test-template-content-css-module/manifest.json +0 -35
- package/dist/test-template-content-css-module/package.json +0 -20
- package/dist/test-template-content-extension-config/README.md +0 -35
- package/dist/test-template-content-extension-config/background.ts +0 -1
- package/dist/test-template-content-extension-config/content/ContentApp.tsx +0 -82
- package/dist/test-template-content-extension-config/content/scripts.tsx +0 -17
- package/dist/test-template-content-extension-config/content/styles.css +0 -10
- package/dist/test-template-content-extension-config/extension.config.js +0 -22
- package/dist/test-template-content-extension-config/images/chromeWindow.png +0 -0
- package/dist/test-template-content-extension-config/images/extension_128.png +0 -0
- package/dist/test-template-content-extension-config/images/extension_16.png +0 -0
- package/dist/test-template-content-extension-config/images/extension_48.png +0 -0
- package/dist/test-template-content-extension-config/images/logo.svg +0 -9
- package/dist/test-template-content-extension-config/images/tailwind.png +0 -0
- package/dist/test-template-content-extension-config/images/tailwind_bg.png +0 -0
- package/dist/test-template-content-extension-config/images/typescript.png +0 -0
- package/dist/test-template-content-extension-config/manifest.json +0 -28
- package/dist/test-template-content-extension-config/package.json +0 -44
- package/dist/test-template-content-extension-config/postcss.config.js +0 -6
- package/dist/test-template-content-extension-config/tailwind.config.js +0 -8
- package/dist/test-template-content-extension-config/tsconfig.json +0 -22
- package/dist/test-template-content-less/README.md +0 -35
- package/dist/test-template-content-less/background.js +0 -21
- package/dist/test-template-content-less/content/scripts.js +0 -32
- package/dist/test-template-content-less/content/styles.less +0 -51
- package/dist/test-template-content-less/images/extension_128.png +0 -0
- package/dist/test-template-content-less/images/extension_16.png +0 -0
- package/dist/test-template-content-less/images/extension_48.png +0 -0
- package/dist/test-template-content-less/manifest.json +0 -35
- package/dist/test-template-content-less/package.json +0 -21
- package/dist/test-template-content-main-world/README.md +0 -35
- package/dist/test-template-content-main-world/background.js +0 -1
- package/dist/test-template-content-main-world/content/scripts.js +0 -20
- package/dist/test-template-content-main-world/content/styles.css +0 -46
- package/dist/test-template-content-main-world/extension.config.js +0 -8
- package/dist/test-template-content-main-world/images/extension_128.png +0 -0
- package/dist/test-template-content-main-world/images/extension_16.png +0 -0
- package/dist/test-template-content-main-world/images/extension_48.png +0 -0
- package/dist/test-template-content-main-world/manifest.json +0 -37
- package/dist/test-template-content-main-world/package.json +0 -20
- package/dist/test-template-content-preact/README.md +0 -35
- package/dist/test-template-content-preact/background.ts +0 -1
- package/dist/test-template-content-preact/content/ContentApp.tsx +0 -92
- package/dist/test-template-content-preact/content/scripts.tsx +0 -14
- package/dist/test-template-content-preact/content/styles.css +0 -10
- package/dist/test-template-content-preact/images/chromeWindow.png +0 -0
- package/dist/test-template-content-preact/images/extension_128.png +0 -0
- package/dist/test-template-content-preact/images/extension_16.png +0 -0
- package/dist/test-template-content-preact/images/extension_48.png +0 -0
- package/dist/test-template-content-preact/images/preact.png +0 -0
- package/dist/test-template-content-preact/images/tailwind.png +0 -0
- package/dist/test-template-content-preact/images/tailwind_bg.png +0 -0
- package/dist/test-template-content-preact/images/typescript.png +0 -0
- package/dist/test-template-content-preact/manifest.json +0 -31
- package/dist/test-template-content-preact/package.json +0 -29
- package/dist/test-template-content-preact/postcss.config.js +0 -6
- package/dist/test-template-content-preact/tailwind.config.js +0 -8
- package/dist/test-template-content-preact/tsconfig.json +0 -27
- package/dist/test-template-content-react/README.md +0 -35
- package/dist/test-template-content-react/background.ts +0 -1
- package/dist/test-template-content-react/content/ContentApp.tsx +0 -86
- package/dist/test-template-content-react/content/scripts.tsx +0 -17
- package/dist/test-template-content-react/content/styles.css +0 -10
- package/dist/test-template-content-react/images/chromeWindow.png +0 -0
- package/dist/test-template-content-react/images/extension_128.png +0 -0
- package/dist/test-template-content-react/images/extension_16.png +0 -0
- package/dist/test-template-content-react/images/extension_48.png +0 -0
- package/dist/test-template-content-react/images/react.png +0 -0
- package/dist/test-template-content-react/images/tailwind.png +0 -0
- package/dist/test-template-content-react/images/tailwind_bg.png +0 -0
- package/dist/test-template-content-react/images/typescript.png +0 -0
- package/dist/test-template-content-react/manifest.json +0 -28
- package/dist/test-template-content-react/package.json +0 -28
- package/dist/test-template-content-react/postcss.config.js +0 -6
- package/dist/test-template-content-react/tailwind.config.js +0 -8
- package/dist/test-template-content-react/tsconfig.json +0 -22
- package/dist/test-template-content-sass/README.md +0 -35
- package/dist/test-template-content-sass/background.js +0 -21
- package/dist/test-template-content-sass/content/scripts.js +0 -32
- package/dist/test-template-content-sass/content/styles.scss +0 -51
- package/dist/test-template-content-sass/images/extension_128.png +0 -0
- package/dist/test-template-content-sass/images/extension_16.png +0 -0
- package/dist/test-template-content-sass/images/extension_48.png +0 -0
- package/dist/test-template-content-sass/manifest.json +0 -35
- package/dist/test-template-content-sass/package.json +0 -21
- package/dist/test-template-content-sass-module/README.md +0 -35
- package/dist/test-template-content-sass-module/background.js +0 -21
- package/dist/test-template-content-sass-module/content/Logo.module.scss +0 -18
- package/dist/test-template-content-sass-module/content/scripts.js +0 -33
- package/dist/test-template-content-sass-module/content/styles.scss +0 -40
- package/dist/test-template-content-sass-module/images/extension_128.png +0 -0
- package/dist/test-template-content-sass-module/images/extension_16.png +0 -0
- package/dist/test-template-content-sass-module/images/extension_48.png +0 -0
- package/dist/test-template-content-sass-module/manifest.json +0 -35
- package/dist/test-template-content-sass-module/package.json +0 -21
- package/dist/test-template-content-tailwind/README.md +0 -35
- package/dist/test-template-content-tailwind/background.js +0 -21
- package/dist/test-template-content-tailwind/content/content.js +0 -45
- package/dist/test-template-content-tailwind/content/scripts.js +0 -6
- package/dist/test-template-content-tailwind/content/styles.css +0 -10
- package/dist/test-template-content-tailwind/images/chromeWindow.png +0 -0
- package/dist/test-template-content-tailwind/images/extension_128.png +0 -0
- package/dist/test-template-content-tailwind/images/extension_16.png +0 -0
- package/dist/test-template-content-tailwind/images/extension_48.png +0 -0
- package/dist/test-template-content-tailwind/images/react.png +0 -0
- package/dist/test-template-content-tailwind/images/tailwind.png +0 -0
- package/dist/test-template-content-tailwind/images/tailwind_bg.png +0 -0
- package/dist/test-template-content-tailwind/manifest.json +0 -35
- package/dist/test-template-content-tailwind/package.json +0 -23
- package/dist/test-template-content-tailwind/postcss.config.js +0 -6
- package/dist/test-template-content-tailwind/tailwind.config.js +0 -8
- package/dist/test-template-content-typescript/README.md +0 -35
- package/dist/test-template-content-typescript/background.ts +0 -26
- package/dist/test-template-content-typescript/content/scripts.ts +0 -33
- package/dist/test-template-content-typescript/content/styles.css +0 -51
- package/dist/test-template-content-typescript/images/extension_128.png +0 -0
- package/dist/test-template-content-typescript/images/extension_16.png +0 -0
- package/dist/test-template-content-typescript/images/extension_48.png +0 -0
- package/dist/test-template-content-typescript/images/typescript.png +0 -0
- package/dist/test-template-content-typescript/manifest.json +0 -35
- package/dist/test-template-content-typescript/package.json +0 -21
- package/dist/test-template-content-typescript/tsconfig.json +0 -22
- package/dist/test-template-content-vue/README.md +0 -35
- package/dist/test-template-content-vue/background.ts +0 -1
- package/dist/test-template-content-vue/content/ContentApp.vue +0 -90
- package/dist/test-template-content-vue/content/scripts.ts +0 -13
- package/dist/test-template-content-vue/content/shims-vue.d.ts +0 -6
- package/dist/test-template-content-vue/content/styles.css +0 -10
- package/dist/test-template-content-vue/images/chromeWindow.png +0 -0
- package/dist/test-template-content-vue/images/extension_128.png +0 -0
- package/dist/test-template-content-vue/images/extension_16.png +0 -0
- package/dist/test-template-content-vue/images/extension_48.png +0 -0
- package/dist/test-template-content-vue/images/tailwind.png +0 -0
- package/dist/test-template-content-vue/images/tailwind_bg.png +0 -0
- package/dist/test-template-content-vue/images/typescript.png +0 -0
- package/dist/test-template-content-vue/images/vue.svg +0 -8
- package/dist/test-template-content-vue/manifest.json +0 -31
- package/dist/test-template-content-vue/package.json +0 -25
- package/dist/test-template-content-vue/postcss.config.js +0 -6
- package/dist/test-template-content-vue/tailwind.config.js +0 -8
- package/dist/test-template-content-vue/tsconfig.json +0 -22
- package/dist/test-template-declarative_net_request/README.md +0 -35
- package/dist/test-template-declarative_net_request/images/extension_128.png +0 -0
- package/dist/test-template-declarative_net_request/images/extension_16.png +0 -0
- package/dist/test-template-declarative_net_request/images/extension_48.png +0 -0
- package/dist/test-template-declarative_net_request/manifest.json +0 -34
- package/dist/test-template-declarative_net_request/package.json +0 -21
- package/dist/test-template-declarative_net_request/public/public_ruleset.json +0 -72
- package/dist/test-template-declarative_net_request/rules_1.json +0 -72
- package/dist/test-template-init/README.md +0 -35
- package/dist/test-template-init/manifest.json +0 -7
- package/dist/test-template-init/package.json +0 -32
- package/dist/test-template-locales/README.md +0 -35
- package/dist/test-template-locales/_locales/en/messages.json +0 -10
- package/dist/test-template-locales/_locales/pt_BR/messages.json +0 -10
- package/dist/test-template-locales/action/index.html +0 -40
- package/dist/test-template-locales/action/scripts.js +0 -3
- package/dist/test-template-locales/action/styles.css +0 -23
- package/dist/test-template-locales/images/extension_128.png +0 -0
- package/dist/test-template-locales/images/extension_16.png +0 -0
- package/dist/test-template-locales/images/extension_48.png +0 -0
- package/dist/test-template-locales/manifest.json +0 -19
- package/dist/test-template-locales/package.json +0 -21
- package/dist/test-template-new-less/README.md +0 -35
- package/dist/test-template-new-less/images/extension_128.png +0 -0
- package/dist/test-template-new-less/images/extension_16.png +0 -0
- package/dist/test-template-new-less/images/extension_48.png +0 -0
- package/dist/test-template-new-less/manifest.json +0 -15
- package/dist/test-template-new-less/newtab/index.html +0 -40
- package/dist/test-template-new-less/newtab/scripts.js +0 -11
- package/dist/test-template-new-less/newtab/styles.less +0 -19
- package/dist/test-template-new-less/package.json +0 -21
- package/dist/test-template-new-preact/README.md +0 -35
- package/dist/test-template-new-preact/images/extension_128.png +0 -0
- package/dist/test-template-new-preact/images/extension_16.png +0 -0
- package/dist/test-template-new-preact/images/extension_48.png +0 -0
- package/dist/test-template-new-preact/images/preact.png +0 -0
- package/dist/test-template-new-preact/manifest.json +0 -15
- package/dist/test-template-new-preact/newtab/NewTabApp.tsx +0 -27
- package/dist/test-template-new-preact/newtab/index.html +0 -13
- package/dist/test-template-new-preact/newtab/scripts.tsx +0 -5
- package/dist/test-template-new-preact/newtab/styles.css +0 -32
- package/dist/test-template-new-preact/package.json +0 -29
- package/dist/test-template-new-preact/tsconfig.json +0 -22
- package/dist/test-template-new-react/README.md +0 -35
- package/dist/test-template-new-react/images/extension_128.png +0 -0
- package/dist/test-template-new-react/images/extension_16.png +0 -0
- package/dist/test-template-new-react/images/extension_48.png +0 -0
- package/dist/test-template-new-react/images/react.png +0 -0
- package/dist/test-template-new-react/manifest.json +0 -15
- package/dist/test-template-new-react/newtab/NewTabApp.tsx +0 -27
- package/dist/test-template-new-react/newtab/index.html +0 -13
- package/dist/test-template-new-react/newtab/scripts.tsx +0 -12
- package/dist/test-template-new-react/newtab/styles.css +0 -23
- package/dist/test-template-new-react/package.json +0 -28
- package/dist/test-template-new-react/tsconfig.json +0 -22
- package/dist/test-template-new-sass/README.md +0 -35
- package/dist/test-template-new-sass/images/extension_128.png +0 -0
- package/dist/test-template-new-sass/images/extension_16.png +0 -0
- package/dist/test-template-new-sass/images/extension_48.png +0 -0
- package/dist/test-template-new-sass/manifest.json +0 -15
- package/dist/test-template-new-sass/newtab/index.html +0 -40
- package/dist/test-template-new-sass/newtab/scripts.js +0 -11
- package/dist/test-template-new-sass/newtab/styles.scss +0 -19
- package/dist/test-template-new-sass/package.json +0 -22
- package/dist/test-template-new-tailwind/README.md +0 -35
- package/dist/test-template-new-tailwind/images/chromeWindow.png +0 -0
- package/dist/test-template-new-tailwind/images/extension_128.png +0 -0
- package/dist/test-template-new-tailwind/images/extension_16.png +0 -0
- package/dist/test-template-new-tailwind/images/extension_48.png +0 -0
- package/dist/test-template-new-tailwind/images/react.png +0 -0
- package/dist/test-template-new-tailwind/images/tailwind.png +0 -0
- package/dist/test-template-new-tailwind/images/tailwind_bg.png +0 -0
- package/dist/test-template-new-tailwind/manifest.json +0 -15
- package/dist/test-template-new-tailwind/newtab/NewTabApp.tsx +0 -67
- package/dist/test-template-new-tailwind/newtab/index.html +0 -13
- package/dist/test-template-new-tailwind/newtab/scripts.tsx +0 -12
- package/dist/test-template-new-tailwind/newtab/styles.css +0 -3
- package/dist/test-template-new-tailwind/package.json +0 -28
- package/dist/test-template-new-tailwind/postcss.config.js +0 -6
- package/dist/test-template-new-tailwind/tailwind.config.js +0 -8
- package/dist/test-template-new-tailwind/tsconfig.json +0 -22
- package/dist/test-template-new-typescript/README.md +0 -35
- package/dist/test-template-new-typescript/images/extension_128.png +0 -0
- package/dist/test-template-new-typescript/images/extension_16.png +0 -0
- package/dist/test-template-new-typescript/images/extension_48.png +0 -0
- package/dist/test-template-new-typescript/images/typescript.png +0 -0
- package/dist/test-template-new-typescript/manifest.json +0 -15
- package/dist/test-template-new-typescript/newtab/index.html +0 -25
- package/dist/test-template-new-typescript/newtab/scripts.ts +0 -10
- package/dist/test-template-new-typescript/newtab/styles.css +0 -18
- package/dist/test-template-new-typescript/package.json +0 -22
- package/dist/test-template-new-typescript/tsconfig.json +0 -22
- package/dist/test-template-new-vue/README.md +0 -35
- package/dist/test-template-new-vue/images/extension_128.png +0 -0
- package/dist/test-template-new-vue/images/extension_16.png +0 -0
- package/dist/test-template-new-vue/images/extension_48.png +0 -0
- package/dist/test-template-new-vue/images/vue.svg +0 -8
- package/dist/test-template-new-vue/manifest.json +0 -15
- package/dist/test-template-new-vue/newtab/NewTabApp.vue +0 -30
- package/dist/test-template-new-vue/newtab/index.html +0 -13
- package/dist/test-template-new-vue/newtab/scripts.ts +0 -7
- package/dist/test-template-new-vue/newtab/styles.css +0 -36
- package/dist/test-template-new-vue/package.json +0 -25
- package/dist/test-template-new-vue/tsconfig.json +0 -22
- package/dist/test-template-sidebar/README.md +0 -35
- package/dist/test-template-sidebar/images/extension_128.png +0 -0
- package/dist/test-template-sidebar/images/extension_16.png +0 -0
- package/dist/test-template-sidebar/images/extension_48.png +0 -0
- package/dist/test-template-sidebar/manifest.json +0 -37
- package/dist/test-template-sidebar/package.json +0 -21
- package/dist/test-template-sidebar/puzzle.png +0 -0
- package/dist/test-template-sidebar/sidebar/index.html +0 -39
- package/dist/test-template-sidebar/sidebar/scripts.js +0 -11
- package/dist/test-template-sidebar/sidebar/styles.css +0 -27
- package/dist/test-template-sidebar/test_16.png +0 -0
- package/dist/test-template-sidebar/test_32.png +0 -0
- package/dist/test-template-sidebar/test_48.png +0 -0
- package/dist/test-template-sidebar/test_64.png +0 -0
- package/dist/test-template-special-folders-pages/README.md +0 -35
- package/dist/test-template-special-folders-pages/background.js +0 -5
- package/dist/test-template-special-folders-pages/images/extension_128.png +0 -0
- package/dist/test-template-special-folders-pages/images/extension_16.png +0 -0
- package/dist/test-template-special-folders-pages/images/extension_48.png +0 -0
- package/dist/test-template-special-folders-pages/images/notpublic-file.png +0 -0
- package/dist/test-template-special-folders-pages/manifest.json +0 -26
- package/dist/test-template-special-folders-pages/package.json +0 -21
- package/dist/test-template-special-folders-pages/pages/custom.html +0 -8
- package/dist/test-template-special-folders-pages/pages/main.css +0 -18
- package/dist/test-template-special-folders-pages/pages/main.html +0 -16
- package/dist/test-template-special-folders-pages/pages/main.js +0 -1
- package/dist/test-template-special-folders-pages/public/css/file.css +0 -3
- package/dist/test-template-special-folders-pages/public/html/file.html +0 -8
- package/dist/test-template-special-folders-pages/public/img/icon.png +0 -0
- package/dist/test-template-special-folders-pages/public/js/file.js +0 -0
- package/dist/test-template-special-folders-pages/sandbox/index.html +0 -24
- package/dist/test-template-special-folders-pages/sandbox/scripts.js +0 -0
- package/dist/test-template-special-folders-pages/sandbox/styles.css +0 -1
- package/dist/test-template-special-folders-scripts/README.md +0 -35
- package/dist/test-template-special-folders-scripts/background.js +0 -24
- package/dist/test-template-special-folders-scripts/images/extension_128.png +0 -0
- package/dist/test-template-special-folders-scripts/images/extension_16.png +0 -0
- package/dist/test-template-special-folders-scripts/images/extension_48.png +0 -0
- package/dist/test-template-special-folders-scripts/manifest.json +0 -27
- package/dist/test-template-special-folders-scripts/package.json +0 -21
- package/dist/test-template-special-folders-scripts/pages/index.css +0 -5
- package/dist/test-template-special-folders-scripts/pages/index.html +0 -3
- package/dist/test-template-special-folders-scripts/pages/index.js +0 -1
- package/dist/test-template-special-folders-scripts/public/extension.png +0 -0
- package/dist/test-template-special-folders-scripts/scripts/content-script.js +0 -3
- package/dist/test-template-storage/README.md +0 -35
- package/dist/test-template-storage/images/extension_128.png +0 -0
- package/dist/test-template-storage/images/extension_16.png +0 -0
- package/dist/test-template-storage/images/extension_48.png +0 -0
- package/dist/test-template-storage/manifest.json +0 -15
- package/dist/test-template-storage/package.json +0 -21
- package/dist/test-template-storage/schema.json +0 -44
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"manifest_version": 3,
|
|
3
|
-
"version": "0.0.1",
|
|
4
|
-
"name": "test-template-content-react",
|
|
5
|
-
"description": "An Extension.js example.",
|
|
6
|
-
"icons": {
|
|
7
|
-
"16": "images/extension_16.png",
|
|
8
|
-
"48": "images/extension_48.png",
|
|
9
|
-
"128": "images/extension_128.png"
|
|
10
|
-
},
|
|
11
|
-
"background": {
|
|
12
|
-
"chromium:service_worker": "background.ts",
|
|
13
|
-
"firefox:scripts": [
|
|
14
|
-
"background.ts"
|
|
15
|
-
]
|
|
16
|
-
},
|
|
17
|
-
"content_scripts": [
|
|
18
|
-
{
|
|
19
|
-
"matches": [
|
|
20
|
-
"https://extension.js.org/*"
|
|
21
|
-
],
|
|
22
|
-
"js": [
|
|
23
|
-
"./content/scripts.tsx"
|
|
24
|
-
]
|
|
25
|
-
}
|
|
26
|
-
],
|
|
27
|
-
"author": "Your Name"
|
|
28
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"private": true,
|
|
3
|
-
"name": "test-template-content-react",
|
|
4
|
-
"description": "An Extension.js example.",
|
|
5
|
-
"version": "0.0.1",
|
|
6
|
-
"author": {
|
|
7
|
-
"name": "Your Name",
|
|
8
|
-
"email": "your@email.com",
|
|
9
|
-
"url": "https://yourwebsite.com"
|
|
10
|
-
},
|
|
11
|
-
"license": "MIT",
|
|
12
|
-
"dependencies": {
|
|
13
|
-
"react": "^18.1.0",
|
|
14
|
-
"react-dom": "^18.1.0",
|
|
15
|
-
"tailwindcss": "^3.4.1"
|
|
16
|
-
},
|
|
17
|
-
"devDependencies": {
|
|
18
|
-
"@types/react": "^18.0.9",
|
|
19
|
-
"@types/react-dom": "^18.0.5",
|
|
20
|
-
"typescript": "5.3.3",
|
|
21
|
-
"extension": "latest"
|
|
22
|
-
},
|
|
23
|
-
"scripts": {
|
|
24
|
-
"dev": "extension dev",
|
|
25
|
-
"start": "extension start",
|
|
26
|
-
"build": "extension build"
|
|
27
|
-
}
|
|
28
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"allowJs": true,
|
|
4
|
-
"allowSyntheticDefaultImports": true,
|
|
5
|
-
"esModuleInterop": true,
|
|
6
|
-
"forceConsistentCasingInFileNames": true,
|
|
7
|
-
"isolatedModules": true,
|
|
8
|
-
"jsx": "react-jsx",
|
|
9
|
-
"lib": ["dom", "dom.iterable", "esnext"],
|
|
10
|
-
"moduleResolution": "node",
|
|
11
|
-
"module": "esnext",
|
|
12
|
-
"noEmit": true,
|
|
13
|
-
"resolveJsonModule": true,
|
|
14
|
-
"strict": true,
|
|
15
|
-
"target": "esnext",
|
|
16
|
-
"verbatimModuleSyntax": true,
|
|
17
|
-
"useDefineForClassFields": true,
|
|
18
|
-
"skipLibCheck": true
|
|
19
|
-
},
|
|
20
|
-
"include": ["./"],
|
|
21
|
-
"exclude": ["node_modules", "dist"]
|
|
22
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# test-template-content-sass
|
|
2
|
-
|
|
3
|
-
> An Extension.js example.
|
|
4
|
-
|
|
5
|
-
## Available Scripts
|
|
6
|
-
|
|
7
|
-
In the project directory, you can run the following scripts:
|
|
8
|
-
|
|
9
|
-
### pnpm dev
|
|
10
|
-
|
|
11
|
-
**Development Mode**: This command runs your extension in development mode. It will launch a new browser instance with your extension loaded. The page will automatically reload whenever you make changes to your code, allowing for a smooth development experience.
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
pnpm dev
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
### pnpm start
|
|
18
|
-
|
|
19
|
-
**Production Preview**: This command runs your extension in production mode. It will launch a new browser instance with your extension loaded, simulating the environment and behavior of your extension as it will appear once published.
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
pnpm start
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
### pnpm build
|
|
26
|
-
|
|
27
|
-
**Build for Production**: This command builds your extension for production. It optimizes and bundles your extension, preparing it for deployment to the target browser's store.
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
pnpm build
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
## Learn More
|
|
34
|
-
|
|
35
|
-
To learn more about creating cross-browser extensions with Extension.js, visit the [official documentation](https://extension.js.org).
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
console.log('hello from background script')
|
|
2
|
-
|
|
3
|
-
chrome.runtime.onMessage.addListener((request, sender) => {
|
|
4
|
-
if (request.action === 'changeBackgroundColor') {
|
|
5
|
-
changeBackgroundColor(request.color, sender.tab.id)
|
|
6
|
-
}
|
|
7
|
-
})
|
|
8
|
-
|
|
9
|
-
function changeBackgroundColor(color, tabId) {
|
|
10
|
-
chrome.scripting
|
|
11
|
-
.executeScript({
|
|
12
|
-
target: {tabId},
|
|
13
|
-
function: setPageBackgroundColor,
|
|
14
|
-
args: [color]
|
|
15
|
-
})
|
|
16
|
-
.catch(console.error)
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function setPageBackgroundColor(color) {
|
|
20
|
-
document.body.style.backgroundColor = color
|
|
21
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import extensionJsLogo from '../images/extension_128.png'
|
|
2
|
-
import './styles.scss'
|
|
3
|
-
|
|
4
|
-
console.log('hello from content_scripts')
|
|
5
|
-
|
|
6
|
-
document.body.innerHTML += `
|
|
7
|
-
<div class="content_script-box">
|
|
8
|
-
<img class="content_script-logo" src=${extensionJsLogo} />
|
|
9
|
-
<h1 class="content_script-title">
|
|
10
|
-
Change the background-color ⬇
|
|
11
|
-
</h1>
|
|
12
|
-
<input type="color" class="content_script-colorPicker" id="colorPicker">
|
|
13
|
-
<p class="content_script-description">
|
|
14
|
-
Learn more about creating browser extensions at <a
|
|
15
|
-
className="underline hover:no-underline"
|
|
16
|
-
href="https://extension.js.org"
|
|
17
|
-
target="_blank"
|
|
18
|
-
>
|
|
19
|
-
https://extension.js.org
|
|
20
|
-
</a>
|
|
21
|
-
</p>
|
|
22
|
-
</div>
|
|
23
|
-
`
|
|
24
|
-
|
|
25
|
-
document.getElementById('colorPicker').addEventListener('input', (event) => {
|
|
26
|
-
chrome.runtime
|
|
27
|
-
.sendMessage({
|
|
28
|
-
action: 'changeBackgroundColor',
|
|
29
|
-
color: event.target.value
|
|
30
|
-
})
|
|
31
|
-
.catch(console.error)
|
|
32
|
-
})
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
.content_script-box {
|
|
2
|
-
background: white;
|
|
3
|
-
position: fixed;
|
|
4
|
-
right: 0;
|
|
5
|
-
bottom: 0;
|
|
6
|
-
z-index: 9;
|
|
7
|
-
width: 315px;
|
|
8
|
-
height: 345px;
|
|
9
|
-
margin: 1em;
|
|
10
|
-
padding: 1em;
|
|
11
|
-
display: flex;
|
|
12
|
-
align-items: center;
|
|
13
|
-
justify-content: center;
|
|
14
|
-
flex-direction: column;
|
|
15
|
-
gap: 1em;
|
|
16
|
-
box-shadow: 0px 0px 4px 1px #ccc;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.content_script-logo {
|
|
20
|
-
width: 90px;
|
|
21
|
-
align-self: flex-start;
|
|
22
|
-
filter: grayscale(1);
|
|
23
|
-
transition: filter 2s;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.content_script-logo:hover {
|
|
27
|
-
filter: grayscale(0);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.content_script-title {
|
|
31
|
-
font-size: 1.85em;
|
|
32
|
-
color: #333;
|
|
33
|
-
line-height: 1.1;
|
|
34
|
-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
|
|
35
|
-
'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
|
|
36
|
-
font-weight: 700;
|
|
37
|
-
overflow-wrap: break-word;
|
|
38
|
-
word-wrap: break-word;
|
|
39
|
-
-ms-word-break: break-all;
|
|
40
|
-
word-break: break-word;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.content_script-description {
|
|
44
|
-
color: #999;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.content_script-colorPicker {
|
|
48
|
-
display: block;
|
|
49
|
-
width: 100%;
|
|
50
|
-
height: 50px;
|
|
51
|
-
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"manifest_version": 3,
|
|
3
|
-
"version": "0.0.1",
|
|
4
|
-
"name": "test-template-content-sass",
|
|
5
|
-
"description": "An Extension.js example.",
|
|
6
|
-
"icons": {
|
|
7
|
-
"16": "images/extension_16.png",
|
|
8
|
-
"48": "images/extension_48.png",
|
|
9
|
-
"128": "images/extension_128.png"
|
|
10
|
-
},
|
|
11
|
-
"permissions": [
|
|
12
|
-
"activeTab",
|
|
13
|
-
"scripting"
|
|
14
|
-
],
|
|
15
|
-
"host_permissions": [
|
|
16
|
-
"<all_urls>"
|
|
17
|
-
],
|
|
18
|
-
"background": {
|
|
19
|
-
"chromium:service_worker": "background.js",
|
|
20
|
-
"firefox:scripts": [
|
|
21
|
-
"background.js"
|
|
22
|
-
]
|
|
23
|
-
},
|
|
24
|
-
"content_scripts": [
|
|
25
|
-
{
|
|
26
|
-
"matches": [
|
|
27
|
-
"<all_urls>"
|
|
28
|
-
],
|
|
29
|
-
"js": [
|
|
30
|
-
"content/scripts.js"
|
|
31
|
-
]
|
|
32
|
-
}
|
|
33
|
-
],
|
|
34
|
-
"author": "Your Name"
|
|
35
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"private": true,
|
|
3
|
-
"name": "test-template-content-sass",
|
|
4
|
-
"description": "An Extension.js example.",
|
|
5
|
-
"version": "0.0.1",
|
|
6
|
-
"author": {
|
|
7
|
-
"name": "Your Name",
|
|
8
|
-
"email": "your@email.com",
|
|
9
|
-
"url": "https://yourwebsite.com"
|
|
10
|
-
},
|
|
11
|
-
"devDependencies": {
|
|
12
|
-
"sass": "^1.77.8",
|
|
13
|
-
"extension": "latest"
|
|
14
|
-
},
|
|
15
|
-
"scripts": {
|
|
16
|
-
"dev": "extension dev",
|
|
17
|
-
"start": "extension start",
|
|
18
|
-
"build": "extension build"
|
|
19
|
-
},
|
|
20
|
-
"dependencies": {}
|
|
21
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# test-template-content-sass-module
|
|
2
|
-
|
|
3
|
-
> An Extension.js example.
|
|
4
|
-
|
|
5
|
-
## Available Scripts
|
|
6
|
-
|
|
7
|
-
In the project directory, you can run the following scripts:
|
|
8
|
-
|
|
9
|
-
### pnpm dev
|
|
10
|
-
|
|
11
|
-
**Development Mode**: This command runs your extension in development mode. It will launch a new browser instance with your extension loaded. The page will automatically reload whenever you make changes to your code, allowing for a smooth development experience.
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
pnpm dev
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
### pnpm start
|
|
18
|
-
|
|
19
|
-
**Production Preview**: This command runs your extension in production mode. It will launch a new browser instance with your extension loaded, simulating the environment and behavior of your extension as it will appear once published.
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
pnpm start
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
### pnpm build
|
|
26
|
-
|
|
27
|
-
**Build for Production**: This command builds your extension for production. It optimizes and bundles your extension, preparing it for deployment to the target browser's store.
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
pnpm build
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
## Learn More
|
|
34
|
-
|
|
35
|
-
To learn more about creating cross-browser extensions with Extension.js, visit the [official documentation](https://extension.js.org).
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
console.log('hello from background script')
|
|
2
|
-
|
|
3
|
-
chrome.runtime.onMessage.addListener((request, sender) => {
|
|
4
|
-
if (request.action === 'changeBackgroundColor') {
|
|
5
|
-
changeBackgroundColor(request.color, sender.tab.id)
|
|
6
|
-
}
|
|
7
|
-
})
|
|
8
|
-
|
|
9
|
-
function changeBackgroundColor(color, tabId) {
|
|
10
|
-
chrome.scripting
|
|
11
|
-
.executeScript({
|
|
12
|
-
target: {tabId},
|
|
13
|
-
function: setPageBackgroundColor,
|
|
14
|
-
args: [color]
|
|
15
|
-
})
|
|
16
|
-
.catch(console.error)
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function setPageBackgroundColor(color) {
|
|
20
|
-
document.body.style.backgroundColor = color
|
|
21
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
.logo {
|
|
2
|
-
background: white;
|
|
3
|
-
width: 90px;
|
|
4
|
-
align-self: flex-start;
|
|
5
|
-
border: 4px solid;
|
|
6
|
-
border-color: #ccc;
|
|
7
|
-
border-radius: 24px;
|
|
8
|
-
filter: grayscale(1);
|
|
9
|
-
transition:
|
|
10
|
-
filter 2s,
|
|
11
|
-
border-color 2s;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.logo:hover {
|
|
15
|
-
filter: grayscale(0);
|
|
16
|
-
border-color: aquamarine;
|
|
17
|
-
}
|
|
18
|
-
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import extensionJsLogo from '../images/extension_128.png'
|
|
2
|
-
import './styles.scss'
|
|
3
|
-
import styles from './Logo.module.scss'
|
|
4
|
-
|
|
5
|
-
console.log('hello from content_scripts')
|
|
6
|
-
|
|
7
|
-
document.body.innerHTML += `
|
|
8
|
-
<div class="content_script-box">
|
|
9
|
-
<img class=${styles.logo} src=${extensionJsLogo} />
|
|
10
|
-
<h1 class="content_script-title">
|
|
11
|
-
Change the background-color ⬇
|
|
12
|
-
</h1>
|
|
13
|
-
<input type="color" class="content_script-colorPicker" id="colorPicker">
|
|
14
|
-
<p class="content_script-description">
|
|
15
|
-
Learn more about creating browser extensions at <a
|
|
16
|
-
className="underline hover:no-underline"
|
|
17
|
-
href="https://extension.js.org"
|
|
18
|
-
target="_blank"
|
|
19
|
-
>
|
|
20
|
-
https://extension.js.org
|
|
21
|
-
</a>
|
|
22
|
-
</p>
|
|
23
|
-
</div>
|
|
24
|
-
`
|
|
25
|
-
|
|
26
|
-
document.getElementById('colorPicker').addEventListener('input', (event) => {
|
|
27
|
-
chrome.runtime
|
|
28
|
-
.sendMessage({
|
|
29
|
-
action: 'changeBackgroundColor',
|
|
30
|
-
color: event.target.value
|
|
31
|
-
})
|
|
32
|
-
.catch(console.error)
|
|
33
|
-
})
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
.content_script-box {
|
|
2
|
-
background: white;
|
|
3
|
-
position: fixed;
|
|
4
|
-
right: 0;
|
|
5
|
-
bottom: 0;
|
|
6
|
-
z-index: 9;
|
|
7
|
-
width: 315px;
|
|
8
|
-
height: 345px;
|
|
9
|
-
margin: 1em;
|
|
10
|
-
padding: 1em;
|
|
11
|
-
display: flex;
|
|
12
|
-
align-items: center;
|
|
13
|
-
justify-content: center;
|
|
14
|
-
flex-direction: column;
|
|
15
|
-
gap: 1em;
|
|
16
|
-
box-shadow: 0px 0px 4px 1px #ccc;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.content_script-title {
|
|
20
|
-
font-size: 1.85em;
|
|
21
|
-
color: #333;
|
|
22
|
-
line-height: 1.1;
|
|
23
|
-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
|
|
24
|
-
'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
|
|
25
|
-
font-weight: 700;
|
|
26
|
-
overflow-wrap: break-word;
|
|
27
|
-
word-wrap: break-word;
|
|
28
|
-
-ms-word-break: break-all;
|
|
29
|
-
word-break: break-word;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.content_script-description {
|
|
33
|
-
color: #999;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.content_script-colorPicker {
|
|
37
|
-
display: block;
|
|
38
|
-
width: 100%;
|
|
39
|
-
height: 50px;
|
|
40
|
-
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"manifest_version": 3,
|
|
3
|
-
"version": "0.0.1",
|
|
4
|
-
"name": "test-template-content-sass-module",
|
|
5
|
-
"description": "An Extension.js example.",
|
|
6
|
-
"icons": {
|
|
7
|
-
"16": "images/extension_16.png",
|
|
8
|
-
"48": "images/extension_48.png",
|
|
9
|
-
"128": "images/extension_128.png"
|
|
10
|
-
},
|
|
11
|
-
"permissions": [
|
|
12
|
-
"activeTab",
|
|
13
|
-
"scripting"
|
|
14
|
-
],
|
|
15
|
-
"host_permissions": [
|
|
16
|
-
"<all_urls>"
|
|
17
|
-
],
|
|
18
|
-
"background": {
|
|
19
|
-
"chromium:service_worker": "background.js",
|
|
20
|
-
"firefox:scripts": [
|
|
21
|
-
"background.js"
|
|
22
|
-
]
|
|
23
|
-
},
|
|
24
|
-
"content_scripts": [
|
|
25
|
-
{
|
|
26
|
-
"matches": [
|
|
27
|
-
"<all_urls>"
|
|
28
|
-
],
|
|
29
|
-
"js": [
|
|
30
|
-
"content/scripts.js"
|
|
31
|
-
]
|
|
32
|
-
}
|
|
33
|
-
],
|
|
34
|
-
"author": "Your Name"
|
|
35
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"private": true,
|
|
3
|
-
"name": "test-template-content-sass-module",
|
|
4
|
-
"description": "An Extension.js example.",
|
|
5
|
-
"version": "0.0.1",
|
|
6
|
-
"author": {
|
|
7
|
-
"name": "Your Name",
|
|
8
|
-
"email": "your@email.com",
|
|
9
|
-
"url": "https://yourwebsite.com"
|
|
10
|
-
},
|
|
11
|
-
"devDependencies": {
|
|
12
|
-
"sass": "^1.77.8",
|
|
13
|
-
"extension": "latest"
|
|
14
|
-
},
|
|
15
|
-
"scripts": {
|
|
16
|
-
"dev": "extension dev",
|
|
17
|
-
"start": "extension start",
|
|
18
|
-
"build": "extension build"
|
|
19
|
-
},
|
|
20
|
-
"dependencies": {}
|
|
21
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# test-template-content-tailwind
|
|
2
|
-
|
|
3
|
-
> An Extension.js example.
|
|
4
|
-
|
|
5
|
-
## Available Scripts
|
|
6
|
-
|
|
7
|
-
In the project directory, you can run the following scripts:
|
|
8
|
-
|
|
9
|
-
### pnpm dev
|
|
10
|
-
|
|
11
|
-
**Development Mode**: This command runs your extension in development mode. It will launch a new browser instance with your extension loaded. The page will automatically reload whenever you make changes to your code, allowing for a smooth development experience.
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
pnpm dev
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
### pnpm start
|
|
18
|
-
|
|
19
|
-
**Production Preview**: This command runs your extension in production mode. It will launch a new browser instance with your extension loaded, simulating the environment and behavior of your extension as it will appear once published.
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
pnpm start
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
### pnpm build
|
|
26
|
-
|
|
27
|
-
**Build for Production**: This command builds your extension for production. It optimizes and bundles your extension, preparing it for deployment to the target browser's store.
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
pnpm build
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
## Learn More
|
|
34
|
-
|
|
35
|
-
To learn more about creating cross-browser extensions with Extension.js, visit the [official documentation](https://extension.js.org).
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
console.log('hello from background script')
|
|
2
|
-
|
|
3
|
-
chrome.runtime.onMessage.addListener((request, sender) => {
|
|
4
|
-
if (request.action === 'changeBackgroundColor') {
|
|
5
|
-
changeBackgroundColor(request.color, sender.tab.id)
|
|
6
|
-
}
|
|
7
|
-
})
|
|
8
|
-
|
|
9
|
-
function changeBackgroundColor(color, tabId) {
|
|
10
|
-
chrome.scripting
|
|
11
|
-
.executeScript({
|
|
12
|
-
target: {tabId},
|
|
13
|
-
function: setPageBackgroundColor,
|
|
14
|
-
args: [color]
|
|
15
|
-
})
|
|
16
|
-
.catch(console.error)
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function setPageBackgroundColor(color) {
|
|
20
|
-
document.body.style.backgroundColor = color
|
|
21
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import tailwindBg from '../images/tailwind_bg.png'
|
|
2
|
-
import tailwindLogo from '../images/tailwind.png'
|
|
3
|
-
import chromeWindowBg from '../images/chromeWindow.png'
|
|
4
|
-
|
|
5
|
-
export function getContentHtml() {
|
|
6
|
-
return `
|
|
7
|
-
<div class="mx-auto max-w-7xl md:px-0 lg:p-6">
|
|
8
|
-
<div class="relative isolate overflow-hidden bg-gray-900 px-6 pt-16 shadow-2xl lg:rounded-3xl md:pt-12 md:h-full sm:h-[100vh] lg:flex lg:gap-x-20 lg:px-12 lg:pt-0">
|
|
9
|
-
<div class="absolute z-20 top-0 inset-x-0 flex justify-center overflow-hidden pointer-events-none">
|
|
10
|
-
<div class="w-[108rem] flex-none flex justify-end">
|
|
11
|
-
<picture>
|
|
12
|
-
<img
|
|
13
|
-
src=${tailwindBg}
|
|
14
|
-
alt=""
|
|
15
|
-
class="w-[90rem] flex-none max-w-none hidden dark:block"
|
|
16
|
-
decoding="async"
|
|
17
|
-
/>
|
|
18
|
-
</picture>
|
|
19
|
-
</div>
|
|
20
|
-
</div>
|
|
21
|
-
<div class="mx-auto max-w-md text-center lg:py-12 lg:mx-0 lg:flex-auto lg:text-left">
|
|
22
|
-
<div class="my-4">
|
|
23
|
-
<img
|
|
24
|
-
alt="Tailwind logo"
|
|
25
|
-
src=${tailwindLogo}
|
|
26
|
-
class="relative inline-block w-12"
|
|
27
|
-
/>
|
|
28
|
-
</div>
|
|
29
|
-
<h2 class="text-3xl font-bold tracking-tight text-white sm:text-4xl">
|
|
30
|
-
This is a content script running Tailwind.css.
|
|
31
|
-
</h2>
|
|
32
|
-
</div>
|
|
33
|
-
<div class="relative mt-16 lg:mt-8">
|
|
34
|
-
<img
|
|
35
|
-
class="absolute left-0 top-0 w-[57rem] max-w-none rounded-md bg-white/5 ring-1 ring-white/10"
|
|
36
|
-
src=${chromeWindowBg}
|
|
37
|
-
alt="Chrome window screenshot"
|
|
38
|
-
width="1824"
|
|
39
|
-
height="1080"
|
|
40
|
-
/>
|
|
41
|
-
</div>
|
|
42
|
-
</div>
|
|
43
|
-
</div>
|
|
44
|
-
`
|
|
45
|
-
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|