extension-create 2.0.0-alpha.23 → 2.0.0-alpha.24

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.
Files changed (333) hide show
  1. package/dist/module.js +3 -3
  2. package/dist/test-template-action/README.md +35 -0
  3. package/dist/test-template-action/action/index.html +40 -0
  4. package/dist/test-template-action/action/scripts.js +11 -0
  5. package/dist/test-template-action/action/styles.css +23 -0
  6. package/dist/test-template-action/images/extension_128.png +0 -0
  7. package/dist/test-template-action/images/extension_16.png +0 -0
  8. package/dist/test-template-action/images/extension_48.png +0 -0
  9. package/dist/test-template-action/manifest.json +21 -0
  10. package/dist/test-template-action/package.json +21 -0
  11. package/dist/test-template-action-chatgpt/.env.example +1 -0
  12. package/dist/test-template-action-chatgpt/README.md +35 -0
  13. package/dist/test-template-action-chatgpt/action/ActionApp.tsx +118 -0
  14. package/dist/test-template-action-chatgpt/action/index.html +13 -0
  15. package/dist/test-template-action-chatgpt/action/scripts.tsx +12 -0
  16. package/dist/test-template-action-chatgpt/action/styles.css +8 -0
  17. package/dist/test-template-action-chatgpt/images/chatgpt.png +0 -0
  18. package/dist/test-template-action-chatgpt/images/extension.png +0 -0
  19. package/dist/test-template-action-chatgpt/images/extension_128.png +0 -0
  20. package/dist/test-template-action-chatgpt/images/extension_16.png +0 -0
  21. package/dist/test-template-action-chatgpt/images/extension_48.png +0 -0
  22. package/dist/test-template-action-chatgpt/manifest.json +21 -0
  23. package/dist/test-template-action-chatgpt/package.json +30 -0
  24. package/dist/test-template-action-chatgpt/postcss.config.js +6 -0
  25. package/dist/test-template-action-chatgpt/tailwind.config.js +8 -0
  26. package/dist/test-template-action-chatgpt/tsconfig.json +22 -0
  27. package/dist/test-template-config-stylelint/README.md +35 -0
  28. package/dist/test-template-config-stylelint/images/extension_128.png +0 -0
  29. package/dist/test-template-config-stylelint/images/extension_16.png +0 -0
  30. package/dist/test-template-config-stylelint/images/extension_48.png +0 -0
  31. package/dist/test-template-config-stylelint/images/stylelint.svg +1 -0
  32. package/dist/test-template-config-stylelint/manifest.json +15 -0
  33. package/dist/test-template-config-stylelint/newtab/index.html +40 -0
  34. package/dist/test-template-config-stylelint/newtab/scripts.js +11 -0
  35. package/dist/test-template-config-stylelint/newtab/styles.css +20 -0
  36. package/dist/test-template-config-stylelint/package.json +23 -0
  37. package/dist/test-template-config-stylelint/stylelint.config.json +1 -0
  38. package/dist/test-template-content/README.md +35 -0
  39. package/dist/test-template-content/background.js +21 -0
  40. package/dist/test-template-content/content/scripts.js +32 -0
  41. package/dist/test-template-content/content/styles.css +54 -0
  42. package/dist/test-template-content/images/extension_128.png +0 -0
  43. package/dist/test-template-content/images/extension_16.png +0 -0
  44. package/dist/test-template-content/images/extension_48.png +0 -0
  45. package/dist/test-template-content/manifest.json +35 -0
  46. package/dist/test-template-content/package.json +20 -0
  47. package/dist/test-template-content-css-module/README.md +35 -0
  48. package/dist/test-template-content-css-module/background.js +21 -0
  49. package/dist/test-template-content-css-module/content/Logo.module.css +11 -0
  50. package/dist/test-template-content-css-module/content/scripts.js +33 -0
  51. package/dist/test-template-content-css-module/content/styles.css +40 -0
  52. package/dist/test-template-content-css-module/images/extension_128.png +0 -0
  53. package/dist/test-template-content-css-module/images/extension_16.png +0 -0
  54. package/dist/test-template-content-css-module/images/extension_48.png +0 -0
  55. package/dist/test-template-content-css-module/manifest.json +35 -0
  56. package/dist/test-template-content-css-module/package.json +20 -0
  57. package/dist/test-template-content-less/README.md +35 -0
  58. package/dist/test-template-content-less/background.js +21 -0
  59. package/dist/test-template-content-less/content/scripts.js +32 -0
  60. package/dist/test-template-content-less/content/styles.less +51 -0
  61. package/dist/test-template-content-less/images/extension_128.png +0 -0
  62. package/dist/test-template-content-less/images/extension_16.png +0 -0
  63. package/dist/test-template-content-less/images/extension_48.png +0 -0
  64. package/dist/test-template-content-less/manifest.json +35 -0
  65. package/dist/test-template-content-less/package.json +21 -0
  66. package/dist/test-template-content-main-world/README.md +35 -0
  67. package/dist/test-template-content-main-world/background.js +1 -0
  68. package/dist/test-template-content-main-world/content/scripts.js +20 -0
  69. package/dist/test-template-content-main-world/content/styles.css +46 -0
  70. package/dist/test-template-content-main-world/extension.config.js +8 -0
  71. package/dist/test-template-content-main-world/images/extension_128.png +0 -0
  72. package/dist/test-template-content-main-world/images/extension_16.png +0 -0
  73. package/dist/test-template-content-main-world/images/extension_48.png +0 -0
  74. package/dist/test-template-content-main-world/manifest.json +37 -0
  75. package/dist/test-template-content-main-world/package.json +20 -0
  76. package/dist/test-template-content-preact/README.md +35 -0
  77. package/dist/test-template-content-preact/background.ts +1 -0
  78. package/dist/test-template-content-preact/content/ContentApp.tsx +92 -0
  79. package/dist/test-template-content-preact/content/scripts.tsx +14 -0
  80. package/dist/test-template-content-preact/content/styles.css +10 -0
  81. package/dist/test-template-content-preact/images/chromeWindow.png +0 -0
  82. package/dist/test-template-content-preact/images/extension_128.png +0 -0
  83. package/dist/test-template-content-preact/images/extension_16.png +0 -0
  84. package/dist/test-template-content-preact/images/extension_48.png +0 -0
  85. package/dist/test-template-content-preact/images/preact.png +0 -0
  86. package/dist/test-template-content-preact/images/tailwind.png +0 -0
  87. package/dist/test-template-content-preact/images/tailwind_bg.png +0 -0
  88. package/dist/test-template-content-preact/images/typescript.png +0 -0
  89. package/dist/test-template-content-preact/manifest.json +31 -0
  90. package/dist/test-template-content-preact/package.json +29 -0
  91. package/dist/test-template-content-preact/postcss.config.js +6 -0
  92. package/dist/test-template-content-preact/tailwind.config.js +8 -0
  93. package/dist/test-template-content-preact/tsconfig.json +27 -0
  94. package/dist/test-template-content-react/README.md +35 -0
  95. package/dist/test-template-content-react/background.ts +1 -0
  96. package/dist/test-template-content-react/content/ContentApp.tsx +86 -0
  97. package/dist/test-template-content-react/content/scripts.tsx +17 -0
  98. package/dist/test-template-content-react/content/styles.css +10 -0
  99. package/dist/test-template-content-react/images/chromeWindow.png +0 -0
  100. package/dist/test-template-content-react/images/extension_128.png +0 -0
  101. package/dist/test-template-content-react/images/extension_16.png +0 -0
  102. package/dist/test-template-content-react/images/extension_48.png +0 -0
  103. package/dist/test-template-content-react/images/react.png +0 -0
  104. package/dist/test-template-content-react/images/tailwind.png +0 -0
  105. package/dist/test-template-content-react/images/tailwind_bg.png +0 -0
  106. package/dist/test-template-content-react/images/typescript.png +0 -0
  107. package/dist/test-template-content-react/manifest.json +28 -0
  108. package/dist/test-template-content-react/package.json +28 -0
  109. package/dist/test-template-content-react/postcss.config.js +6 -0
  110. package/dist/test-template-content-react/tailwind.config.js +8 -0
  111. package/dist/test-template-content-react/tsconfig.json +22 -0
  112. package/dist/test-template-content-sass/README.md +35 -0
  113. package/dist/test-template-content-sass/background.js +21 -0
  114. package/dist/test-template-content-sass/content/scripts.js +32 -0
  115. package/dist/test-template-content-sass/content/styles.scss +51 -0
  116. package/dist/test-template-content-sass/images/extension_128.png +0 -0
  117. package/dist/test-template-content-sass/images/extension_16.png +0 -0
  118. package/dist/test-template-content-sass/images/extension_48.png +0 -0
  119. package/dist/test-template-content-sass/manifest.json +35 -0
  120. package/dist/test-template-content-sass/package.json +21 -0
  121. package/dist/test-template-content-sass-module/README.md +35 -0
  122. package/dist/test-template-content-sass-module/background.js +21 -0
  123. package/dist/test-template-content-sass-module/content/Logo.module.scss +18 -0
  124. package/dist/test-template-content-sass-module/content/scripts.js +33 -0
  125. package/dist/test-template-content-sass-module/content/styles.scss +40 -0
  126. package/dist/test-template-content-sass-module/images/extension_128.png +0 -0
  127. package/dist/test-template-content-sass-module/images/extension_16.png +0 -0
  128. package/dist/test-template-content-sass-module/images/extension_48.png +0 -0
  129. package/dist/test-template-content-sass-module/manifest.json +35 -0
  130. package/dist/test-template-content-sass-module/package.json +21 -0
  131. package/dist/test-template-content-tailwind/README.md +35 -0
  132. package/dist/test-template-content-tailwind/background.js +21 -0
  133. package/dist/test-template-content-tailwind/content/content.js +45 -0
  134. package/dist/test-template-content-tailwind/content/scripts.js +6 -0
  135. package/dist/test-template-content-tailwind/content/styles.css +10 -0
  136. package/dist/test-template-content-tailwind/images/chromeWindow.png +0 -0
  137. package/dist/test-template-content-tailwind/images/extension_128.png +0 -0
  138. package/dist/test-template-content-tailwind/images/extension_16.png +0 -0
  139. package/dist/test-template-content-tailwind/images/extension_48.png +0 -0
  140. package/dist/test-template-content-tailwind/images/react.png +0 -0
  141. package/dist/test-template-content-tailwind/images/tailwind.png +0 -0
  142. package/dist/test-template-content-tailwind/images/tailwind_bg.png +0 -0
  143. package/dist/test-template-content-tailwind/manifest.json +35 -0
  144. package/dist/test-template-content-tailwind/package.json +23 -0
  145. package/dist/test-template-content-tailwind/postcss.config.js +6 -0
  146. package/dist/test-template-content-tailwind/tailwind.config.js +8 -0
  147. package/dist/test-template-content-typescript/README.md +35 -0
  148. package/dist/test-template-content-typescript/background.ts +26 -0
  149. package/dist/test-template-content-typescript/content/scripts.ts +33 -0
  150. package/dist/test-template-content-typescript/content/styles.css +51 -0
  151. package/dist/test-template-content-typescript/images/extension_128.png +0 -0
  152. package/dist/test-template-content-typescript/images/extension_16.png +0 -0
  153. package/dist/test-template-content-typescript/images/extension_48.png +0 -0
  154. package/dist/test-template-content-typescript/images/typescript.png +0 -0
  155. package/dist/test-template-content-typescript/manifest.json +35 -0
  156. package/dist/test-template-content-typescript/package.json +21 -0
  157. package/dist/test-template-content-typescript/tsconfig.json +22 -0
  158. package/dist/test-template-content-vue/README.md +35 -0
  159. package/dist/test-template-content-vue/background.ts +1 -0
  160. package/dist/test-template-content-vue/content/ContentApp.vue +90 -0
  161. package/dist/test-template-content-vue/content/scripts.ts +13 -0
  162. package/dist/test-template-content-vue/content/shims-vue.d.ts +6 -0
  163. package/dist/test-template-content-vue/content/styles.css +10 -0
  164. package/dist/test-template-content-vue/images/chromeWindow.png +0 -0
  165. package/dist/test-template-content-vue/images/extension_128.png +0 -0
  166. package/dist/test-template-content-vue/images/extension_16.png +0 -0
  167. package/dist/test-template-content-vue/images/extension_48.png +0 -0
  168. package/dist/test-template-content-vue/images/tailwind.png +0 -0
  169. package/dist/test-template-content-vue/images/tailwind_bg.png +0 -0
  170. package/dist/test-template-content-vue/images/typescript.png +0 -0
  171. package/dist/test-template-content-vue/images/vue.svg +8 -0
  172. package/dist/test-template-content-vue/manifest.json +31 -0
  173. package/dist/test-template-content-vue/package.json +25 -0
  174. package/dist/test-template-content-vue/postcss.config.js +6 -0
  175. package/dist/test-template-content-vue/tailwind.config.js +8 -0
  176. package/dist/test-template-content-vue/tsconfig.json +22 -0
  177. package/dist/test-template-declarative_net_request/README.md +35 -0
  178. package/dist/test-template-declarative_net_request/images/extension_128.png +0 -0
  179. package/dist/test-template-declarative_net_request/images/extension_16.png +0 -0
  180. package/dist/test-template-declarative_net_request/images/extension_48.png +0 -0
  181. package/dist/test-template-declarative_net_request/manifest.json +34 -0
  182. package/dist/test-template-declarative_net_request/package.json +21 -0
  183. package/dist/test-template-declarative_net_request/public/public_ruleset.json +72 -0
  184. package/dist/test-template-declarative_net_request/rules_1.json +72 -0
  185. package/dist/test-template-init/README.md +35 -0
  186. package/dist/test-template-init/manifest.json +7 -0
  187. package/dist/test-template-init/package.json +32 -0
  188. package/dist/test-template-locales/README.md +35 -0
  189. package/dist/test-template-locales/_locales/en/messages.json +10 -0
  190. package/dist/test-template-locales/_locales/pt_BR/messages.json +10 -0
  191. package/dist/test-template-locales/action/index.html +40 -0
  192. package/dist/test-template-locales/action/scripts.js +3 -0
  193. package/dist/test-template-locales/action/styles.css +23 -0
  194. package/dist/test-template-locales/images/extension_128.png +0 -0
  195. package/dist/test-template-locales/images/extension_16.png +0 -0
  196. package/dist/test-template-locales/images/extension_48.png +0 -0
  197. package/dist/test-template-locales/manifest.json +19 -0
  198. package/dist/test-template-locales/package.json +21 -0
  199. package/dist/test-template-new-less/README.md +35 -0
  200. package/dist/test-template-new-less/images/extension_128.png +0 -0
  201. package/dist/test-template-new-less/images/extension_16.png +0 -0
  202. package/dist/test-template-new-less/images/extension_48.png +0 -0
  203. package/dist/test-template-new-less/manifest.json +15 -0
  204. package/dist/test-template-new-less/newtab/index.html +40 -0
  205. package/dist/test-template-new-less/newtab/scripts.js +11 -0
  206. package/dist/test-template-new-less/newtab/styles.less +19 -0
  207. package/dist/test-template-new-less/package.json +21 -0
  208. package/dist/test-template-new-preact/README.md +35 -0
  209. package/dist/test-template-new-preact/images/extension_128.png +0 -0
  210. package/dist/test-template-new-preact/images/extension_16.png +0 -0
  211. package/dist/test-template-new-preact/images/extension_48.png +0 -0
  212. package/dist/test-template-new-preact/images/preact.png +0 -0
  213. package/dist/test-template-new-preact/manifest.json +15 -0
  214. package/dist/test-template-new-preact/newtab/NewTabApp.tsx +27 -0
  215. package/dist/test-template-new-preact/newtab/index.html +13 -0
  216. package/dist/test-template-new-preact/newtab/scripts.tsx +5 -0
  217. package/dist/test-template-new-preact/newtab/styles.css +32 -0
  218. package/dist/test-template-new-preact/package.json +29 -0
  219. package/dist/test-template-new-preact/tsconfig.json +22 -0
  220. package/dist/test-template-new-react/README.md +35 -0
  221. package/dist/test-template-new-react/images/extension_128.png +0 -0
  222. package/dist/test-template-new-react/images/extension_16.png +0 -0
  223. package/dist/test-template-new-react/images/extension_48.png +0 -0
  224. package/dist/test-template-new-react/images/react.png +0 -0
  225. package/dist/test-template-new-react/manifest.json +15 -0
  226. package/dist/test-template-new-react/newtab/NewTabApp.tsx +27 -0
  227. package/dist/test-template-new-react/newtab/index.html +13 -0
  228. package/dist/test-template-new-react/newtab/scripts.tsx +12 -0
  229. package/dist/test-template-new-react/newtab/styles.css +23 -0
  230. package/dist/test-template-new-react/package.json +28 -0
  231. package/dist/test-template-new-react/tsconfig.json +22 -0
  232. package/dist/test-template-new-sass/README.md +35 -0
  233. package/dist/test-template-new-sass/images/extension_128.png +0 -0
  234. package/dist/test-template-new-sass/images/extension_16.png +0 -0
  235. package/dist/test-template-new-sass/images/extension_48.png +0 -0
  236. package/dist/test-template-new-sass/manifest.json +15 -0
  237. package/dist/test-template-new-sass/newtab/index.html +40 -0
  238. package/dist/test-template-new-sass/newtab/scripts.js +11 -0
  239. package/dist/test-template-new-sass/newtab/styles.scss +19 -0
  240. package/dist/test-template-new-sass/package.json +22 -0
  241. package/dist/test-template-new-tailwind/README.md +35 -0
  242. package/dist/test-template-new-tailwind/images/chromeWindow.png +0 -0
  243. package/dist/test-template-new-tailwind/images/extension_128.png +0 -0
  244. package/dist/test-template-new-tailwind/images/extension_16.png +0 -0
  245. package/dist/test-template-new-tailwind/images/extension_48.png +0 -0
  246. package/dist/test-template-new-tailwind/images/react.png +0 -0
  247. package/dist/test-template-new-tailwind/images/tailwind.png +0 -0
  248. package/dist/test-template-new-tailwind/images/tailwind_bg.png +0 -0
  249. package/dist/test-template-new-tailwind/manifest.json +15 -0
  250. package/dist/test-template-new-tailwind/newtab/NewTabApp.tsx +67 -0
  251. package/dist/test-template-new-tailwind/newtab/index.html +13 -0
  252. package/dist/test-template-new-tailwind/newtab/scripts.tsx +12 -0
  253. package/dist/test-template-new-tailwind/newtab/styles.css +3 -0
  254. package/dist/test-template-new-tailwind/package.json +28 -0
  255. package/dist/test-template-new-tailwind/postcss.config.js +6 -0
  256. package/dist/test-template-new-tailwind/tailwind.config.js +8 -0
  257. package/dist/test-template-new-tailwind/tsconfig.json +22 -0
  258. package/dist/test-template-new-typescript/README.md +35 -0
  259. package/dist/test-template-new-typescript/images/extension_128.png +0 -0
  260. package/dist/test-template-new-typescript/images/extension_16.png +0 -0
  261. package/dist/test-template-new-typescript/images/extension_48.png +0 -0
  262. package/dist/test-template-new-typescript/images/typescript.png +0 -0
  263. package/dist/test-template-new-typescript/manifest.json +15 -0
  264. package/dist/test-template-new-typescript/newtab/index.html +25 -0
  265. package/dist/test-template-new-typescript/newtab/scripts.ts +10 -0
  266. package/dist/test-template-new-typescript/newtab/styles.css +18 -0
  267. package/dist/test-template-new-typescript/package.json +22 -0
  268. package/dist/test-template-new-typescript/tsconfig.json +22 -0
  269. package/dist/test-template-new-vue/README.md +35 -0
  270. package/dist/test-template-new-vue/images/extension_128.png +0 -0
  271. package/dist/test-template-new-vue/images/extension_16.png +0 -0
  272. package/dist/test-template-new-vue/images/extension_48.png +0 -0
  273. package/dist/test-template-new-vue/images/vue.svg +8 -0
  274. package/dist/test-template-new-vue/manifest.json +15 -0
  275. package/dist/test-template-new-vue/newtab/NewTabApp.vue +30 -0
  276. package/dist/test-template-new-vue/newtab/index.html +13 -0
  277. package/dist/test-template-new-vue/newtab/scripts.ts +7 -0
  278. package/dist/test-template-new-vue/newtab/styles.css +36 -0
  279. package/dist/test-template-new-vue/package.json +25 -0
  280. package/dist/test-template-new-vue/tsconfig.json +22 -0
  281. package/dist/test-template-sidebar/README.md +35 -0
  282. package/dist/test-template-sidebar/images/extension_128.png +0 -0
  283. package/dist/test-template-sidebar/images/extension_16.png +0 -0
  284. package/dist/test-template-sidebar/images/extension_48.png +0 -0
  285. package/dist/test-template-sidebar/manifest.json +37 -0
  286. package/dist/test-template-sidebar/package.json +21 -0
  287. package/dist/test-template-sidebar/puzzle.png +0 -0
  288. package/dist/test-template-sidebar/sidebar/index.html +39 -0
  289. package/dist/test-template-sidebar/sidebar/scripts.js +11 -0
  290. package/dist/test-template-sidebar/sidebar/styles.css +27 -0
  291. package/dist/test-template-sidebar/test_16.png +0 -0
  292. package/dist/test-template-sidebar/test_32.png +0 -0
  293. package/dist/test-template-sidebar/test_48.png +0 -0
  294. package/dist/test-template-sidebar/test_64.png +0 -0
  295. package/dist/test-template-special-folders-pages/README.md +35 -0
  296. package/dist/test-template-special-folders-pages/background.js +5 -0
  297. package/dist/test-template-special-folders-pages/images/extension_128.png +0 -0
  298. package/dist/test-template-special-folders-pages/images/extension_16.png +0 -0
  299. package/dist/test-template-special-folders-pages/images/extension_48.png +0 -0
  300. package/dist/test-template-special-folders-pages/images/notpublic-file.png +0 -0
  301. package/dist/test-template-special-folders-pages/manifest.json +26 -0
  302. package/dist/test-template-special-folders-pages/package.json +21 -0
  303. package/dist/test-template-special-folders-pages/pages/custom.html +8 -0
  304. package/dist/test-template-special-folders-pages/pages/main.css +18 -0
  305. package/dist/test-template-special-folders-pages/pages/main.html +16 -0
  306. package/dist/test-template-special-folders-pages/pages/main.js +1 -0
  307. package/dist/test-template-special-folders-pages/public/css/file.css +3 -0
  308. package/dist/test-template-special-folders-pages/public/html/file.html +8 -0
  309. package/dist/test-template-special-folders-pages/public/img/icon.png +0 -0
  310. package/dist/test-template-special-folders-pages/public/js/file.js +0 -0
  311. package/dist/test-template-special-folders-pages/sandbox/index.html +24 -0
  312. package/dist/test-template-special-folders-pages/sandbox/scripts.js +0 -0
  313. package/dist/test-template-special-folders-pages/sandbox/styles.css +1 -0
  314. package/dist/test-template-special-folders-scripts/README.md +35 -0
  315. package/dist/test-template-special-folders-scripts/background.js +24 -0
  316. package/dist/test-template-special-folders-scripts/images/extension_128.png +0 -0
  317. package/dist/test-template-special-folders-scripts/images/extension_16.png +0 -0
  318. package/dist/test-template-special-folders-scripts/images/extension_48.png +0 -0
  319. package/dist/test-template-special-folders-scripts/manifest.json +27 -0
  320. package/dist/test-template-special-folders-scripts/package.json +21 -0
  321. package/dist/test-template-special-folders-scripts/pages/index.css +5 -0
  322. package/dist/test-template-special-folders-scripts/pages/index.html +3 -0
  323. package/dist/test-template-special-folders-scripts/pages/index.js +1 -0
  324. package/dist/test-template-special-folders-scripts/public/extension.png +0 -0
  325. package/dist/test-template-special-folders-scripts/scripts/content-script.js +3 -0
  326. package/dist/test-template-storage/README.md +35 -0
  327. package/dist/test-template-storage/images/extension_128.png +0 -0
  328. package/dist/test-template-storage/images/extension_16.png +0 -0
  329. package/dist/test-template-storage/images/extension_48.png +0 -0
  330. package/dist/test-template-storage/manifest.json +15 -0
  331. package/dist/test-template-storage/package.json +21 -0
  332. package/dist/test-template-storage/schema.json +44 -0
  333. package/package.json +3 -3
@@ -0,0 +1,20 @@
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
+ .stylelint:hover {
13
+ filter: grayscale(1);
14
+ transition: filter 2s,
15
+ }
16
+
17
+ .new:hover {
18
+ filter: grayscale(0);
19
+ border-color: aquamarine;
20
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "private": true,
3
+ "name": "test-template-config-stylelint",
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
+ "scripts": {
12
+ "lint:css": "stylelint '**/*.css'",
13
+ "dev": "extension dev",
14
+ "start": "extension start",
15
+ "build": "extension build"
16
+ },
17
+ "devDependencies": {
18
+ "stylelint": "^16.7.0",
19
+ "stylelint-config-standard": "^36.0.1",
20
+ "extension": "latest"
21
+ },
22
+ "dependencies": {}
23
+ }
@@ -0,0 +1 @@
1
+ {"extends": ["stylelint-config-standard"]}
@@ -0,0 +1,35 @@
1
+ # test-template-content
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).
@@ -0,0 +1,21 @@
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
+ }
@@ -0,0 +1,32 @@
1
+ import extensionJsLogo from '../images/extension_128.png'
2
+ import './styles.css'
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
+ })
@@ -0,0 +1,54 @@
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:
24
+ filter 2s,
25
+ border-color 2s;
26
+ }
27
+
28
+ .content_script-logo:hover {
29
+ filter: grayscale(0);
30
+ border-color: aquamarine;
31
+ }
32
+
33
+ .content_script-title {
34
+ font-size: 1.85em;
35
+ color: #333;
36
+ line-height: 1.1;
37
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
38
+ 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
39
+ font-weight: 700;
40
+ overflow-wrap: break-word;
41
+ word-wrap: break-word;
42
+ -ms-word-break: break-all;
43
+ word-break: break-word;
44
+ }
45
+
46
+ .content_script-description {
47
+ color: #999;
48
+ }
49
+
50
+ .content_script-colorPicker {
51
+ display: block;
52
+ width: 100%;
53
+ height: 50px;
54
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "manifest_version": 3,
3
+ "version": "0.0.1",
4
+ "name": "test-template-content",
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
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "private": true,
3
+ "name": "test-template-content",
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
+ "scripts": {
12
+ "dev": "extension dev",
13
+ "start": "extension start",
14
+ "build": "extension build"
15
+ },
16
+ "dependencies": {},
17
+ "devDependencies": {
18
+ "extension": "latest"
19
+ }
20
+ }
@@ -0,0 +1,35 @@
1
+ # test-template-content-css-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).
@@ -0,0 +1,21 @@
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
+ }
@@ -0,0 +1,11 @@
1
+ .logo {
2
+ width: 90px;
3
+ align-self: flex-start;
4
+ filter: grayscale(1);
5
+ transition: filter 2s;
6
+ }
7
+
8
+ .logo:hover {
9
+ filter: grayscale(0);
10
+ }
11
+
@@ -0,0 +1,33 @@
1
+ import extensionJsLogo from '../images/extension_128.png'
2
+ import './styles.css'
3
+ import styles from './Logo.module.css'
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
+ })
@@ -0,0 +1,40 @@
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
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "manifest_version": 3,
3
+ "version": "0.0.1",
4
+ "name": "test-template-content-css-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
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "private": true,
3
+ "name": "test-template-content-css-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
+ "scripts": {
12
+ "dev": "extension dev",
13
+ "start": "extension start",
14
+ "build": "extension build"
15
+ },
16
+ "dependencies": {},
17
+ "devDependencies": {
18
+ "extension": "latest"
19
+ }
20
+ }
@@ -0,0 +1,35 @@
1
+ # test-template-content-less
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).
@@ -0,0 +1,21 @@
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
+ }
@@ -0,0 +1,32 @@
1
+ import extensionJsLogo from '../images/extension_128.png'
2
+ import './styles.less'
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
+ })
@@ -0,0 +1,51 @@
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
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "manifest_version": 3,
3
+ "version": "0.0.1",
4
+ "name": "test-template-content-less",
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
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "private": true,
3
+ "name": "test-template-content-less",
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
+ "less": "^4.2.0",
13
+ "extension": "latest"
14
+ },
15
+ "scripts": {
16
+ "dev": "extension dev",
17
+ "start": "extension start",
18
+ "build": "extension build"
19
+ },
20
+ "dependencies": {}
21
+ }