extension-create 2.0.0-alpha.5 → 2.0.0-alpha.7
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 +13 -12
- package/package.json +2 -2
- package/dist/action/README.md +0 -37
- package/dist/action/action/index.html +0 -40
- package/dist/action/action/scripts.js +0 -11
- package/dist/action/action/styles.css +0 -23
- package/dist/action/images/extension_128.png +0 -0
- package/dist/action/images/extension_16.png +0 -0
- package/dist/action/images/extension_48.png +0 -0
- package/dist/action/manifest.json +0 -21
- package/dist/action/package.json +0 -21
- package/dist/action-chatgpt/.env.example +0 -1
- package/dist/action-chatgpt/README.md +0 -37
- package/dist/action-chatgpt/action/ActionApp.tsx +0 -118
- package/dist/action-chatgpt/action/index.html +0 -13
- package/dist/action-chatgpt/action/scripts.tsx +0 -12
- package/dist/action-chatgpt/action/styles.css +0 -8
- package/dist/action-chatgpt/extension-env.d.ts +0 -9
- package/dist/action-chatgpt/images/chatgpt.png +0 -0
- package/dist/action-chatgpt/images/extension.png +0 -0
- package/dist/action-chatgpt/images/extension_128.png +0 -0
- package/dist/action-chatgpt/images/extension_16.png +0 -0
- package/dist/action-chatgpt/images/extension_48.png +0 -0
- package/dist/action-chatgpt/manifest.json +0 -21
- package/dist/action-chatgpt/package.json +0 -30
- package/dist/action-chatgpt/postcss.config.js +0 -6
- package/dist/action-chatgpt/tailwind.config.js +0 -8
- package/dist/action-chatgpt/tsconfig.json +0 -21
- package/dist/config-stylelint/README.md +0 -37
- package/dist/config-stylelint/images/extension_128.png +0 -0
- package/dist/config-stylelint/images/extension_16.png +0 -0
- package/dist/config-stylelint/images/extension_48.png +0 -0
- package/dist/config-stylelint/images/stylelint.svg +0 -1
- package/dist/config-stylelint/manifest.json +0 -15
- package/dist/config-stylelint/newtab/index.html +0 -40
- package/dist/config-stylelint/newtab/scripts.js +0 -11
- package/dist/config-stylelint/newtab/styles.css +0 -20
- package/dist/config-stylelint/package.json +0 -23
- package/dist/config-stylelint/stylelint.config.json +0 -1
- package/dist/content/README.md +0 -37
- package/dist/content/background.js +0 -21
- package/dist/content/content/scripts.js +0 -32
- package/dist/content/content/styles.css +0 -54
- package/dist/content/images/extension_128.png +0 -0
- package/dist/content/images/extension_16.png +0 -0
- package/dist/content/images/extension_48.png +0 -0
- package/dist/content/manifest.json +0 -35
- package/dist/content/package.json +0 -20
- package/dist/content-css-module/README.md +0 -37
- package/dist/content-css-module/background.js +0 -21
- package/dist/content-css-module/content/Logo.module.css +0 -11
- package/dist/content-css-module/content/scripts.js +0 -33
- package/dist/content-css-module/content/styles.css +0 -40
- package/dist/content-css-module/images/extension_128.png +0 -0
- package/dist/content-css-module/images/extension_16.png +0 -0
- package/dist/content-css-module/images/extension_48.png +0 -0
- package/dist/content-css-module/manifest.json +0 -35
- package/dist/content-css-module/package.json +0 -20
- package/dist/content-less/README.md +0 -37
- package/dist/content-less/background.js +0 -21
- package/dist/content-less/content/scripts.js +0 -32
- package/dist/content-less/content/styles.less +0 -51
- package/dist/content-less/images/extension_128.png +0 -0
- package/dist/content-less/images/extension_16.png +0 -0
- package/dist/content-less/images/extension_48.png +0 -0
- package/dist/content-less/manifest.json +0 -35
- package/dist/content-less/package.json +0 -21
- package/dist/content-main-world/README.md +0 -37
- package/dist/content-main-world/background.js +0 -19
- package/dist/content-main-world/content/scripts.js +0 -32
- package/dist/content-main-world/content/styles.css +0 -51
- package/dist/content-main-world/images/extension_128.png +0 -0
- package/dist/content-main-world/images/extension_16.png +0 -0
- package/dist/content-main-world/images/extension_48.png +0 -0
- package/dist/content-main-world/manifest.json +0 -37
- package/dist/content-main-world/package.json +0 -20
- package/dist/content-preact/README.md +0 -37
- package/dist/content-preact/background.ts +0 -1
- package/dist/content-preact/content/ContentApp.tsx +0 -92
- package/dist/content-preact/content/scripts.tsx +0 -14
- package/dist/content-preact/content/styles.css +0 -10
- package/dist/content-preact/extension-env.d.ts +0 -9
- package/dist/content-preact/images/chromeWindow.png +0 -0
- package/dist/content-preact/images/extension_128.png +0 -0
- package/dist/content-preact/images/extension_16.png +0 -0
- package/dist/content-preact/images/extension_48.png +0 -0
- package/dist/content-preact/images/preact.png +0 -0
- package/dist/content-preact/images/tailwind.png +0 -0
- package/dist/content-preact/images/tailwind_bg.png +0 -0
- package/dist/content-preact/images/typescript.png +0 -0
- package/dist/content-preact/manifest.json +0 -31
- package/dist/content-preact/package.json +0 -27
- package/dist/content-preact/postcss.config.js +0 -6
- package/dist/content-preact/tailwind.config.js +0 -8
- package/dist/content-preact/tsconfig.json +0 -26
- package/dist/content-react/README.md +0 -37
- package/dist/content-react/background.ts +0 -1
- package/dist/content-react/content/ContentApp.tsx +0 -86
- package/dist/content-react/content/scripts.tsx +0 -17
- package/dist/content-react/content/styles.css +0 -10
- package/dist/content-react/extension-env.d.ts +0 -9
- package/dist/content-react/images/chromeWindow.png +0 -0
- package/dist/content-react/images/extension_128.png +0 -0
- package/dist/content-react/images/extension_16.png +0 -0
- package/dist/content-react/images/extension_48.png +0 -0
- package/dist/content-react/images/react.png +0 -0
- package/dist/content-react/images/tailwind.png +0 -0
- package/dist/content-react/images/tailwind_bg.png +0 -0
- package/dist/content-react/images/typescript.png +0 -0
- package/dist/content-react/manifest.json +0 -28
- package/dist/content-react/package.json +0 -28
- package/dist/content-react/postcss.config.js +0 -6
- package/dist/content-react/tailwind.config.js +0 -8
- package/dist/content-react/tsconfig.json +0 -21
- package/dist/content-sass/README.md +0 -37
- package/dist/content-sass/background.js +0 -21
- package/dist/content-sass/content/scripts.js +0 -32
- package/dist/content-sass/content/styles.scss +0 -51
- package/dist/content-sass/images/extension_128.png +0 -0
- package/dist/content-sass/images/extension_16.png +0 -0
- package/dist/content-sass/images/extension_48.png +0 -0
- package/dist/content-sass/manifest.json +0 -35
- package/dist/content-sass/package.json +0 -21
- package/dist/content-sass-module/README.md +0 -37
- package/dist/content-sass-module/background.js +0 -21
- package/dist/content-sass-module/content/Logo.module.scss +0 -18
- package/dist/content-sass-module/content/scripts.js +0 -33
- package/dist/content-sass-module/content/styles.scss +0 -40
- package/dist/content-sass-module/images/extension_128.png +0 -0
- package/dist/content-sass-module/images/extension_16.png +0 -0
- package/dist/content-sass-module/images/extension_48.png +0 -0
- package/dist/content-sass-module/manifest.json +0 -35
- package/dist/content-sass-module/package.json +0 -21
- package/dist/content-tailwind/README.md +0 -37
- package/dist/content-tailwind/background.js +0 -21
- package/dist/content-tailwind/content/content.js +0 -45
- package/dist/content-tailwind/content/scripts.js +0 -6
- package/dist/content-tailwind/content/styles.css +0 -10
- package/dist/content-tailwind/images/chromeWindow.png +0 -0
- package/dist/content-tailwind/images/extension_128.png +0 -0
- package/dist/content-tailwind/images/extension_16.png +0 -0
- package/dist/content-tailwind/images/extension_48.png +0 -0
- package/dist/content-tailwind/images/react.png +0 -0
- package/dist/content-tailwind/images/tailwind.png +0 -0
- package/dist/content-tailwind/images/tailwind_bg.png +0 -0
- package/dist/content-tailwind/manifest.json +0 -35
- package/dist/content-tailwind/package.json +0 -23
- package/dist/content-tailwind/postcss.config.js +0 -6
- package/dist/content-tailwind/tailwind.config.js +0 -8
- package/dist/content-typescript/README.md +0 -37
- package/dist/content-typescript/background.ts +0 -26
- package/dist/content-typescript/content/scripts.ts +0 -33
- package/dist/content-typescript/content/styles.css +0 -51
- package/dist/content-typescript/extension-env.d.ts +0 -9
- package/dist/content-typescript/images/extension_128.png +0 -0
- package/dist/content-typescript/images/extension_16.png +0 -0
- package/dist/content-typescript/images/extension_48.png +0 -0
- package/dist/content-typescript/images/typescript.png +0 -0
- package/dist/content-typescript/manifest.json +0 -35
- package/dist/content-typescript/package.json +0 -21
- package/dist/content-typescript/tsconfig.json +0 -21
- package/dist/content-vue/README.md +0 -37
- package/dist/content-vue/background.ts +0 -1
- package/dist/content-vue/content/ContentApp.vue +0 -90
- package/dist/content-vue/content/scripts.ts +0 -13
- package/dist/content-vue/content/shims-vue.d.ts +0 -6
- package/dist/content-vue/content/styles.css +0 -10
- package/dist/content-vue/extension-env.d.ts +0 -9
- package/dist/content-vue/images/chromeWindow.png +0 -0
- package/dist/content-vue/images/extension_128.png +0 -0
- package/dist/content-vue/images/extension_16.png +0 -0
- package/dist/content-vue/images/extension_48.png +0 -0
- package/dist/content-vue/images/tailwind.png +0 -0
- package/dist/content-vue/images/tailwind_bg.png +0 -0
- package/dist/content-vue/images/typescript.png +0 -0
- package/dist/content-vue/images/vue.svg +0 -8
- package/dist/content-vue/manifest.json +0 -31
- package/dist/content-vue/package.json +0 -25
- package/dist/content-vue/postcss.config.js +0 -6
- package/dist/content-vue/tailwind.config.js +0 -8
- package/dist/content-vue/tsconfig.json +0 -21
- package/dist/declarative_net_request/README.md +0 -37
- package/dist/declarative_net_request/images/extension_128.png +0 -0
- package/dist/declarative_net_request/images/extension_16.png +0 -0
- package/dist/declarative_net_request/images/extension_48.png +0 -0
- package/dist/declarative_net_request/manifest.json +0 -34
- package/dist/declarative_net_request/package.json +0 -21
- package/dist/declarative_net_request/public/public_ruleset.json +0 -72
- package/dist/declarative_net_request/rules_1.json +0 -72
- package/dist/init/README.md +0 -37
- package/dist/init/manifest.json +0 -7
- package/dist/init/package.json +0 -32
- package/dist/locales/README.md +0 -37
- package/dist/locales/_locales/en/messages.json +0 -10
- package/dist/locales/_locales/pt_BR/messages.json +0 -10
- package/dist/locales/action/index.html +0 -40
- package/dist/locales/action/scripts.js +0 -3
- package/dist/locales/action/styles.css +0 -23
- package/dist/locales/images/extension_128.png +0 -0
- package/dist/locales/images/extension_16.png +0 -0
- package/dist/locales/images/extension_48.png +0 -0
- package/dist/locales/manifest.json +0 -19
- package/dist/locales/package.json +0 -21
- package/dist/new-less/README.md +0 -37
- package/dist/new-less/images/extension_128.png +0 -0
- package/dist/new-less/images/extension_16.png +0 -0
- package/dist/new-less/images/extension_48.png +0 -0
- package/dist/new-less/manifest.json +0 -15
- package/dist/new-less/newtab/index.html +0 -40
- package/dist/new-less/newtab/scripts.js +0 -11
- package/dist/new-less/newtab/styles.less +0 -19
- package/dist/new-less/package.json +0 -21
- package/dist/new-preact/README.md +0 -37
- package/dist/new-preact/extension-env.d.ts +0 -9
- package/dist/new-preact/images/extension_128.png +0 -0
- package/dist/new-preact/images/extension_16.png +0 -0
- package/dist/new-preact/images/extension_48.png +0 -0
- package/dist/new-preact/images/preact.png +0 -0
- package/dist/new-preact/manifest.json +0 -15
- package/dist/new-preact/newtab/NewTabApp.tsx +0 -27
- package/dist/new-preact/newtab/index.html +0 -13
- package/dist/new-preact/newtab/scripts.tsx +0 -5
- package/dist/new-preact/newtab/styles.css +0 -32
- package/dist/new-preact/package.json +0 -27
- package/dist/new-preact/tsconfig.json +0 -21
- package/dist/new-react/README.md +0 -37
- package/dist/new-react/extension-env.d.ts +0 -9
- package/dist/new-react/images/extension_128.png +0 -0
- package/dist/new-react/images/extension_16.png +0 -0
- package/dist/new-react/images/extension_48.png +0 -0
- package/dist/new-react/images/react.png +0 -0
- package/dist/new-react/manifest.json +0 -15
- package/dist/new-react/newtab/NewTabApp.tsx +0 -27
- package/dist/new-react/newtab/index.html +0 -13
- package/dist/new-react/newtab/scripts.tsx +0 -12
- package/dist/new-react/newtab/styles.css +0 -23
- package/dist/new-react/package.json +0 -28
- package/dist/new-react/tsconfig.json +0 -21
- package/dist/new-sass/README.md +0 -37
- package/dist/new-sass/images/extension_128.png +0 -0
- package/dist/new-sass/images/extension_16.png +0 -0
- package/dist/new-sass/images/extension_48.png +0 -0
- package/dist/new-sass/manifest.json +0 -15
- package/dist/new-sass/newtab/index.html +0 -40
- package/dist/new-sass/newtab/scripts.js +0 -11
- package/dist/new-sass/newtab/styles.scss +0 -19
- package/dist/new-sass/package.json +0 -22
- package/dist/new-tailwind/README.md +0 -37
- package/dist/new-tailwind/extension-env.d.ts +0 -9
- package/dist/new-tailwind/images/chromeWindow.png +0 -0
- package/dist/new-tailwind/images/extension_128.png +0 -0
- package/dist/new-tailwind/images/extension_16.png +0 -0
- package/dist/new-tailwind/images/extension_48.png +0 -0
- package/dist/new-tailwind/images/react.png +0 -0
- package/dist/new-tailwind/images/tailwind.png +0 -0
- package/dist/new-tailwind/images/tailwind_bg.png +0 -0
- package/dist/new-tailwind/manifest.json +0 -15
- package/dist/new-tailwind/newtab/NewTabApp.tsx +0 -67
- package/dist/new-tailwind/newtab/index.html +0 -13
- package/dist/new-tailwind/newtab/scripts.tsx +0 -12
- package/dist/new-tailwind/newtab/styles.css +0 -3
- package/dist/new-tailwind/package.json +0 -28
- package/dist/new-tailwind/postcss.config.js +0 -6
- package/dist/new-tailwind/tailwind.config.js +0 -8
- package/dist/new-tailwind/tsconfig.json +0 -21
- package/dist/new-typescript/README.md +0 -37
- package/dist/new-typescript/extension-env.d.ts +0 -9
- package/dist/new-typescript/images/extension_128.png +0 -0
- package/dist/new-typescript/images/extension_16.png +0 -0
- package/dist/new-typescript/images/extension_48.png +0 -0
- package/dist/new-typescript/images/typescript.png +0 -0
- package/dist/new-typescript/manifest.json +0 -15
- package/dist/new-typescript/newtab/index.html +0 -25
- package/dist/new-typescript/newtab/scripts.ts +0 -10
- package/dist/new-typescript/newtab/styles.css +0 -18
- package/dist/new-typescript/package.json +0 -22
- package/dist/new-typescript/tsconfig.json +0 -21
- package/dist/new-vue/README.md +0 -37
- package/dist/new-vue/extension-env.d.ts +0 -9
- package/dist/new-vue/images/extension_128.png +0 -0
- package/dist/new-vue/images/extension_16.png +0 -0
- package/dist/new-vue/images/extension_48.png +0 -0
- package/dist/new-vue/images/vue.svg +0 -8
- package/dist/new-vue/manifest.json +0 -15
- package/dist/new-vue/newtab/NewTabApp.vue +0 -30
- package/dist/new-vue/newtab/index.html +0 -13
- package/dist/new-vue/newtab/scripts.ts +0 -7
- package/dist/new-vue/newtab/styles.css +0 -36
- package/dist/new-vue/package.json +0 -25
- package/dist/new-vue/tsconfig.json +0 -21
- package/dist/sidebar/README.md +0 -37
- package/dist/sidebar/images/extension_128.png +0 -0
- package/dist/sidebar/images/extension_16.png +0 -0
- package/dist/sidebar/images/extension_48.png +0 -0
- package/dist/sidebar/manifest.json +0 -25
- package/dist/sidebar/package.json +0 -21
- package/dist/sidebar/puzzle.png +0 -0
- package/dist/sidebar/sidebar/index.html +0 -39
- package/dist/sidebar/sidebar/scripts.js +0 -11
- package/dist/sidebar/sidebar/styles.css +0 -27
- package/dist/sidebar/test_16.png +0 -0
- package/dist/sidebar/test_32.png +0 -0
- package/dist/sidebar/test_48.png +0 -0
- package/dist/sidebar/test_64.png +0 -0
- package/dist/special-folders-pages/README.md +0 -37
- package/dist/special-folders-pages/background.js +0 -5
- package/dist/special-folders-pages/images/extension_128.png +0 -0
- package/dist/special-folders-pages/images/extension_16.png +0 -0
- package/dist/special-folders-pages/images/extension_48.png +0 -0
- package/dist/special-folders-pages/images/notpublic-file.png +0 -0
- package/dist/special-folders-pages/manifest.json +0 -26
- package/dist/special-folders-pages/package.json +0 -21
- package/dist/special-folders-pages/pages/custom.html +0 -8
- package/dist/special-folders-pages/pages/main.css +0 -18
- package/dist/special-folders-pages/pages/main.html +0 -16
- package/dist/special-folders-pages/pages/main.js +0 -1
- package/dist/special-folders-pages/public/css/file.css +0 -3
- package/dist/special-folders-pages/public/html/file.html +0 -8
- package/dist/special-folders-pages/public/img/icon.png +0 -0
- package/dist/special-folders-pages/public/js/file.js +0 -0
- package/dist/special-folders-pages/sandbox/index.html +0 -24
- package/dist/special-folders-pages/sandbox/scripts.js +0 -0
- package/dist/special-folders-pages/sandbox/styles.css +0 -1
- package/dist/special-folders-scripts/README.md +0 -37
- package/dist/special-folders-scripts/background.js +0 -24
- package/dist/special-folders-scripts/images/extension_128.png +0 -0
- package/dist/special-folders-scripts/images/extension_16.png +0 -0
- package/dist/special-folders-scripts/images/extension_48.png +0 -0
- package/dist/special-folders-scripts/manifest.json +0 -27
- package/dist/special-folders-scripts/package.json +0 -21
- package/dist/special-folders-scripts/pages/index.css +0 -5
- package/dist/special-folders-scripts/pages/index.html +0 -3
- package/dist/special-folders-scripts/pages/index.js +0 -1
- package/dist/special-folders-scripts/public/extension.png +0 -0
- package/dist/special-folders-scripts/scripts/content-script.js +0 -3
- package/dist/storage/README.md +0 -37
- package/dist/storage/images/extension_128.png +0 -0
- package/dist/storage/images/extension_16.png +0 -0
- package/dist/storage/images/extension_48.png +0 -0
- package/dist/storage/manifest.json +0 -15
- package/dist/storage/package.json +0 -21
- package/dist/storage/schema.json +0 -44
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
body {
|
|
2
|
-
display: flex;
|
|
3
|
-
justify-content: center;
|
|
4
|
-
align-items: center;
|
|
5
|
-
height: calc(100vh - 26px);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
h1 {
|
|
9
|
-
font-size: 4.7em;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.vue {
|
|
13
|
-
animation: heartbeat 1s linear infinite;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
@keyframes heartbeat {
|
|
17
|
-
0% {
|
|
18
|
-
transform: scale(0.9);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
20% {
|
|
22
|
-
transform: scale(1);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
30% {
|
|
26
|
-
transform: scale(0.9);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
40% {
|
|
30
|
-
transform: scale(1);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
100% {
|
|
34
|
-
transform: scale(0.9);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "new-vue",
|
|
3
|
-
"description": "An Extension.js example.",
|
|
4
|
-
"version": "0.0.1",
|
|
5
|
-
"author": {
|
|
6
|
-
"name": "Your Name",
|
|
7
|
-
"email": "your@email.com",
|
|
8
|
-
"url": "https://yourwebsite.com"
|
|
9
|
-
},
|
|
10
|
-
"license": "MIT",
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"vue": "^3.4.27",
|
|
13
|
-
"sakura.css": "^1.5.0"
|
|
14
|
-
},
|
|
15
|
-
"devDependencies": {
|
|
16
|
-
"typescript": "5.3.3",
|
|
17
|
-
"extension": "latest"
|
|
18
|
-
},
|
|
19
|
-
"scripts": {
|
|
20
|
-
"dev": "extension dev",
|
|
21
|
-
"start": "extension start",
|
|
22
|
-
"build": "extension build"
|
|
23
|
-
},
|
|
24
|
-
"private": true
|
|
25
|
-
}
|
|
@@ -1,21 +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
|
-
"resolveJsonModule": true,
|
|
13
|
-
"strict": true,
|
|
14
|
-
"target": "esnext",
|
|
15
|
-
"verbatimModuleSyntax": true,
|
|
16
|
-
"useDefineForClassFields": true,
|
|
17
|
-
"skipLibCheck": true
|
|
18
|
-
},
|
|
19
|
-
"include": ["./"],
|
|
20
|
-
"exclude": ["node_modules", "dist"]
|
|
21
|
-
}
|
package/dist/sidebar/README.md
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
# sidebar
|
|
2
|
-
|
|
3
|
-
> An Extension.js example.
|
|
4
|
-
|
|
5
|
-
## Scripts Available
|
|
6
|
-
|
|
7
|
-
In the project directory, you can run:
|
|
8
|
-
|
|
9
|
-
### yarn dev
|
|
10
|
-
|
|
11
|
-
```
|
|
12
|
-
// Runs the app in the development mode.
|
|
13
|
-
// Will open a new browser instance with your extension loaded.
|
|
14
|
-
// The page will reload when you make changes.
|
|
15
|
-
yarn dev
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
### yarn start
|
|
19
|
-
|
|
20
|
-
```
|
|
21
|
-
// Runs the app in the production mode.
|
|
22
|
-
// Will open a new browser instance with your extension loaded.
|
|
23
|
-
// This is how your browser extension will work once published.
|
|
24
|
-
yarn start
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
### yarn build
|
|
28
|
-
|
|
29
|
-
```
|
|
30
|
-
// Builds the app for production.
|
|
31
|
-
// Bundles your browser extension in production mode for the target browser.
|
|
32
|
-
yarn build
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
## Learn More
|
|
36
|
-
|
|
37
|
-
Learn more about creating cross-browser extensions in the [Extension.js](https://extension.js.org) documentation.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"manifest_version": 3,
|
|
3
|
-
"version": "0.0.1",
|
|
4
|
-
"name": "sidebar",
|
|
5
|
-
"author": "Your Name",
|
|
6
|
-
"description": "An Extension.js example.",
|
|
7
|
-
"icons": {
|
|
8
|
-
"16": "images/extension_16.png",
|
|
9
|
-
"48": "images/extension_48.png",
|
|
10
|
-
"128": "images/extension_128.png"
|
|
11
|
-
},
|
|
12
|
-
"chromium:side_panel": {
|
|
13
|
-
"default_path": "sidebar/index.html",
|
|
14
|
-
"default_title": "Sidebar Action",
|
|
15
|
-
"default_icon": "images/extension_48.png"
|
|
16
|
-
},
|
|
17
|
-
"firefox:sidebar_action": {
|
|
18
|
-
"default_panel": "sidebar/index.html",
|
|
19
|
-
"default_title": "Sidebar Action",
|
|
20
|
-
"default_icon": "images/extension_48.png"
|
|
21
|
-
},
|
|
22
|
-
"permissions": [
|
|
23
|
-
"sidePanel"
|
|
24
|
-
]
|
|
25
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"private": true,
|
|
3
|
-
"name": "sidebar",
|
|
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
|
-
"scripts": {
|
|
13
|
-
"dev": "extension dev",
|
|
14
|
-
"start": "extension start",
|
|
15
|
-
"build": "extension build"
|
|
16
|
-
},
|
|
17
|
-
"dependencies": {},
|
|
18
|
-
"devDependencies": {
|
|
19
|
-
"extension": "latest"
|
|
20
|
-
}
|
|
21
|
-
}
|
package/dist/sidebar/puzzle.png
DELETED
|
Binary file
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
-
<title>Sidebar Extension</title>
|
|
7
|
-
<link
|
|
8
|
-
rel="stylesheet"
|
|
9
|
-
href="https://unpkg.com/sakura.css/css/sakura.css"
|
|
10
|
-
media="screen"
|
|
11
|
-
/>
|
|
12
|
-
<link
|
|
13
|
-
rel="stylesheet"
|
|
14
|
-
href="https://unpkg.com/sakura.css/css/sakura-dark.css"
|
|
15
|
-
media="screen and (prefers-color-scheme: dark)"
|
|
16
|
-
/>
|
|
17
|
-
<link rel="stylesheet" href="./styles.css" media="screen" />
|
|
18
|
-
</head>
|
|
19
|
-
<body>
|
|
20
|
-
<header>
|
|
21
|
-
<h1>
|
|
22
|
-
<img
|
|
23
|
-
class="sidebar"
|
|
24
|
-
src="../images/extension_128.png"
|
|
25
|
-
alt="The Extension logo"
|
|
26
|
-
/>
|
|
27
|
-
<br />
|
|
28
|
-
Welcome to your Sidebar Extension
|
|
29
|
-
</h1>
|
|
30
|
-
<p>
|
|
31
|
-
Learn more about creating cross-browser extensions at
|
|
32
|
-
<a href="https://extension.js.org" target="_blank"
|
|
33
|
-
>https://extension.js.org</a
|
|
34
|
-
>.
|
|
35
|
-
</p>
|
|
36
|
-
</header>
|
|
37
|
-
</body>
|
|
38
|
-
<script src="./scripts.js"></script>
|
|
39
|
-
</html>
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
body {
|
|
2
|
-
display: flex;
|
|
3
|
-
justify-content: center;
|
|
4
|
-
align-items: center;
|
|
5
|
-
height: calc(100vh - 26px);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
h1 {
|
|
9
|
-
font-size: 4.7em;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.sidebar {
|
|
13
|
-
border-radius: 24px;
|
|
14
|
-
border: 4px solid;
|
|
15
|
-
background: white;
|
|
16
|
-
border-color: #ccc;
|
|
17
|
-
border-radius: 24px;
|
|
18
|
-
filter: grayscale(1);
|
|
19
|
-
transition:
|
|
20
|
-
filter 2s,
|
|
21
|
-
border-color 2s;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.sidebar:hover {
|
|
25
|
-
filter: grayscale(0);
|
|
26
|
-
border-color: aquamarine;
|
|
27
|
-
}
|
package/dist/sidebar/test_16.png
DELETED
|
Binary file
|
package/dist/sidebar/test_32.png
DELETED
|
Binary file
|
package/dist/sidebar/test_48.png
DELETED
|
Binary file
|
package/dist/sidebar/test_64.png
DELETED
|
Binary file
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
# special-folders-pages
|
|
2
|
-
|
|
3
|
-
> An Extension.js example.
|
|
4
|
-
|
|
5
|
-
## Scripts Available
|
|
6
|
-
|
|
7
|
-
In the project directory, you can run:
|
|
8
|
-
|
|
9
|
-
### yarn dev
|
|
10
|
-
|
|
11
|
-
```
|
|
12
|
-
// Runs the app in the development mode.
|
|
13
|
-
// Will open a new browser instance with your extension loaded.
|
|
14
|
-
// The page will reload when you make changes.
|
|
15
|
-
yarn dev
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
### yarn start
|
|
19
|
-
|
|
20
|
-
```
|
|
21
|
-
// Runs the app in the production mode.
|
|
22
|
-
// Will open a new browser instance with your extension loaded.
|
|
23
|
-
// This is how your browser extension will work once published.
|
|
24
|
-
yarn start
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
### yarn build
|
|
28
|
-
|
|
29
|
-
```
|
|
30
|
-
// Builds the app for production.
|
|
31
|
-
// Bundles your browser extension in production mode for the target browser.
|
|
32
|
-
yarn build
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
## Learn More
|
|
36
|
-
|
|
37
|
-
Learn more about creating cross-browser extensions in the [Extension.js](https://extension.js.org) documentation.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "special-folders-pages",
|
|
3
|
-
"version": "0.0.1",
|
|
4
|
-
"manifest_version": 3,
|
|
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.js",
|
|
13
|
-
"firefox:scripts": [
|
|
14
|
-
"background.js"
|
|
15
|
-
]
|
|
16
|
-
},
|
|
17
|
-
"action": {
|
|
18
|
-
"default_popup": "pages/main.html"
|
|
19
|
-
},
|
|
20
|
-
"sandbox": {
|
|
21
|
-
"pages": [
|
|
22
|
-
"sandbox/index.html"
|
|
23
|
-
]
|
|
24
|
-
},
|
|
25
|
-
"author": "Your Name"
|
|
26
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"private": true,
|
|
3
|
-
"name": "special-folders-pages",
|
|
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
|
-
"scripts": {
|
|
13
|
-
"dev": "extension dev",
|
|
14
|
-
"start": "extension start",
|
|
15
|
-
"build": "extension build"
|
|
16
|
-
},
|
|
17
|
-
"dependencies": {},
|
|
18
|
-
"devDependencies": {
|
|
19
|
-
"extension": "latest"
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<title>Sandboxed Content</title>
|
|
6
|
-
<link rel="stylesheet" href="./main.css" />
|
|
7
|
-
</head>
|
|
8
|
-
<body>
|
|
9
|
-
<h1>Main Window</h1>
|
|
10
|
-
<p>I am the main window. I am not sandboxed.</p>
|
|
11
|
-
<img src="../images/notpublic-file.png" alt="Not Public File" />
|
|
12
|
-
<iframe src="../sandbox/index.html" width="380" height="140"></iframe>
|
|
13
|
-
<iframe src="/public/html/file.html" width="380" height="140"></iframe>
|
|
14
|
-
<script src="./main.js"></script>
|
|
15
|
-
</body>
|
|
16
|
-
</html>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
console.log('Hello from main.js!')
|
|
Binary file
|
|
File without changes
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<title>Sandboxed Content</title>
|
|
6
|
-
<link rel="stylesheet" href="../public/css/file.css" />
|
|
7
|
-
<link rel="stylesheet" href="./styles.css" />
|
|
8
|
-
</head>
|
|
9
|
-
<body>
|
|
10
|
-
<h1>Sandboxed Content</h1>
|
|
11
|
-
<p>I am the sandboxed iframe.</p>
|
|
12
|
-
<div id="message"></div>
|
|
13
|
-
<img src="../images/extension_128.png">
|
|
14
|
-
<script>
|
|
15
|
-
eval(
|
|
16
|
-
"document.getElementById('message').innerHTML = '<p>I am the " +
|
|
17
|
-
"output of an eval-ed inline script.</p>'"
|
|
18
|
-
);
|
|
19
|
-
</script>
|
|
20
|
-
<iframe src="../pages/custom.html"></iframe>
|
|
21
|
-
<script src="./scripts.js"></script>
|
|
22
|
-
<script src="../public/js/file.js"></script>
|
|
23
|
-
</body>
|
|
24
|
-
</html>
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
body {}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
# special-folders-scripts
|
|
2
|
-
|
|
3
|
-
> An Extension.js example.
|
|
4
|
-
|
|
5
|
-
## Scripts Available
|
|
6
|
-
|
|
7
|
-
In the project directory, you can run:
|
|
8
|
-
|
|
9
|
-
### yarn dev
|
|
10
|
-
|
|
11
|
-
```
|
|
12
|
-
// Runs the app in the development mode.
|
|
13
|
-
// Will open a new browser instance with your extension loaded.
|
|
14
|
-
// The page will reload when you make changes.
|
|
15
|
-
yarn dev
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
### yarn start
|
|
19
|
-
|
|
20
|
-
```
|
|
21
|
-
// Runs the app in the production mode.
|
|
22
|
-
// Will open a new browser instance with your extension loaded.
|
|
23
|
-
// This is how your browser extension will work once published.
|
|
24
|
-
yarn start
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
### yarn build
|
|
28
|
-
|
|
29
|
-
```
|
|
30
|
-
// Builds the app for production.
|
|
31
|
-
// Bundles your browser extension in production mode for the target browser.
|
|
32
|
-
yarn build
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
## Learn More
|
|
36
|
-
|
|
37
|
-
Learn more about creating cross-browser extensions in the [Extension.js](https://extension.js.org) documentation.
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
chrome.action.onClicked.addListener(openDemoTab)
|
|
2
|
-
|
|
3
|
-
function openDemoTab() {
|
|
4
|
-
chrome.tabs.create({url: './pages/index.html'})
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
chrome.webNavigation.onDOMContentLoaded.addListener(async ({tabId, url}) => {
|
|
8
|
-
if (url !== 'https://extension.js.org/#inject-programmatic') return
|
|
9
|
-
const {options} = await chrome.storage.local.get('options')
|
|
10
|
-
chrome.scripting.executeScript({
|
|
11
|
-
target: {tabId},
|
|
12
|
-
files: ['./scripts/content-script.js'],
|
|
13
|
-
...options
|
|
14
|
-
})
|
|
15
|
-
})
|
|
16
|
-
|
|
17
|
-
chrome.runtime.onMessage.addListener(async ({name, options}) => {
|
|
18
|
-
if (name === 'inject-programmatic') {
|
|
19
|
-
await chrome.storage.local.set({options})
|
|
20
|
-
await chrome.tabs.create({
|
|
21
|
-
url: 'https://extension.js.org/#inject-programmatic'
|
|
22
|
-
})
|
|
23
|
-
}
|
|
24
|
-
})
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "special-folders-scripts",
|
|
3
|
-
"version": "0.0.1",
|
|
4
|
-
"manifest_version": 3,
|
|
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.js",
|
|
13
|
-
"firefox:scripts": [
|
|
14
|
-
"background.js"
|
|
15
|
-
]
|
|
16
|
-
},
|
|
17
|
-
"permissions": [
|
|
18
|
-
"scripting",
|
|
19
|
-
"webNavigation",
|
|
20
|
-
"storage"
|
|
21
|
-
],
|
|
22
|
-
"host_permissions": [
|
|
23
|
-
"https://extension.js.org/*"
|
|
24
|
-
],
|
|
25
|
-
"action": {},
|
|
26
|
-
"author": "Your Name"
|
|
27
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"private": true,
|
|
3
|
-
"name": "special-folders-scripts",
|
|
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
|
-
"scripts": {
|
|
13
|
-
"dev": "extension dev",
|
|
14
|
-
"start": "extension start",
|
|
15
|
-
"build": "extension build"
|
|
16
|
-
},
|
|
17
|
-
"dependencies": {},
|
|
18
|
-
"devDependencies": {
|
|
19
|
-
"extension": "latest"
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
console.log('ok')
|
|
Binary file
|