From 6a1b85cae9daa77dfe5fc39740be97ac0dcaa0a7 Mon Sep 17 00:00:00 2001 From: yakisova41 Date: Thu, 16 May 2024 15:18:21 +0000 Subject: [PATCH] Deploy website - based on 62b1071876efa39e59e55d126d7a3b3c64667c57 --- 404.html | 2 +- assets/js/a019ea88.6940ebbf.js | 1 - assets/js/a019ea88.7bc8c2a1.js | 1 + ...ime~main.a4ee50d7.js => runtime~main.32f0059f.js} | 2 +- .../ConnectorRequired/get-extension-id/index.html | 2 +- docs/API/ConnectorRequired/message/index.html | 2 +- docs/API/Normal/get-running-runtime/index.html | 2 +- docs/API/introduction/index.html | 2 +- docs/Configuring/chrome-output-dir/index.html | 2 +- docs/Configuring/dev-server/index.html | 2 +- docs/Configuring/es-build-options/index.html | 2 +- .../Configuring/import-icon-to-userscript/index.html | 2 +- docs/Configuring/introduction/index.html | 2 +- docs/Configuring/manifest-path/index.html | 2 +- docs/Configuring/prettier/index.html | 2 +- docs/Configuring/public-dir/index.html | 2 +- docs/Configuring/user-script-header/index.html | 2 +- docs/Configuring/userscript-output/index.html | 2 +- docs/intro/index.html | 2 +- docs/manifest/index.html | 12 ++++++++---- index.html | 2 +- ja/404.html | 2 +- ja/assets/js/a019ea88.8f10a851.js | 1 - ja/assets/js/a019ea88.d245c9f2.js | 1 + ...ime~main.a675a14e.js => runtime~main.04ff0398.js} | 2 +- .../ConnectorRequired/get-extension-id/index.html | 2 +- ja/docs/API/ConnectorRequired/message/index.html | 2 +- ja/docs/API/Normal/get-running-runtime/index.html | 2 +- ja/docs/API/introduction/index.html | 2 +- ja/docs/Configuring/chrome-output-dir/index.html | 2 +- ja/docs/Configuring/dev-server/index.html | 2 +- ja/docs/Configuring/es-build-options/index.html | 2 +- .../Configuring/import-icon-to-userscript/index.html | 2 +- ja/docs/Configuring/introduction/index.html | 2 +- ja/docs/Configuring/manifest-path/index.html | 2 +- ja/docs/Configuring/prettier/index.html | 2 +- ja/docs/Configuring/public-dir/index.html | 2 +- ja/docs/Configuring/user-script-header/index.html | 2 +- ja/docs/Configuring/userscript-output/index.html | 2 +- ja/docs/intro/index.html | 2 +- ja/docs/manifest/index.html | 12 ++++++++---- ja/index.html | 2 +- ja/markdown-page/index.html | 2 +- markdown-page/index.html | 2 +- 44 files changed, 56 insertions(+), 48 deletions(-) delete mode 100644 assets/js/a019ea88.6940ebbf.js create mode 100644 assets/js/a019ea88.7bc8c2a1.js rename assets/js/{runtime~main.a4ee50d7.js => runtime~main.32f0059f.js} (54%) delete mode 100644 ja/assets/js/a019ea88.8f10a851.js create mode 100644 ja/assets/js/a019ea88.d245c9f2.js rename ja/assets/js/{runtime~main.a675a14e.js => runtime~main.04ff0398.js} (97%) diff --git a/404.html b/404.html index f1e89e2..082203c 100644 --- a/404.html +++ b/404.html @@ -4,7 +4,7 @@ Page Not Found | CRX MONKEY - + diff --git a/assets/js/a019ea88.6940ebbf.js b/assets/js/a019ea88.6940ebbf.js deleted file mode 100644 index 1dbf618..0000000 --- a/assets/js/a019ea88.6940ebbf.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcrx_monkey=self.webpackChunkcrx_monkey||[]).push([[76],{4465:(n,e,t)=>{t.r(e),t.d(e,{assets:()=>a,contentTitle:()=>c,default:()=>p,frontMatter:()=>r,metadata:()=>o,toc:()=>d});var i=t(4848),s=t(8453);const r={},c="Manifest.js",o={id:"manifest",title:"Manifest.js",description:"crx-monkey requires a manifest file called manifest.js to configure the extension.",source:"@site/docs/manifest.md",sourceDirName:".",slug:"/manifest",permalink:"/crx-monkey/docs/manifest",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"userscriptOutput",permalink:"/crx-monkey/docs/Configuring/userscript-output"}},a={},d=[{value:"CRX MONKEY proprietary options defined",id:"crx-monkey-proprietary-options-defined",level:2},{value:"connection_isolated",id:"connection_isolated",level:3},{value:"userscript_direct_inject",id:"userscript_direct_inject",level:3}];function l(n){const e={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",p:"p",pre:"pre",strong:"strong",...(0,s.R)(),...n.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(e.h1,{id:"manifestjs",children:"Manifest.js"}),"\n",(0,i.jsx)(e.p,{children:"crx-monkey requires a manifest file called manifest.js to configure the extension."}),"\n",(0,i.jsxs)(e.p,{children:["This is automatically generated by ",(0,i.jsx)(e.strong,{children:"create-crx-monkey"}),"."]}),"\n",(0,i.jsx)(e.p,{children:"This file exports by default the manifest v3 object with its own options included."}),"\n",(0,i.jsx)(e.pre,{children:(0,i.jsx)(e.code,{className:"language-js",metastring:'title="manifest.js"',children:"/ @ts-check\n\n/** @type {import('crx-monkey').CrxMonkeyManifest} */\nconst manifest = {\n name: 'name',\n version: '1.0.0',\n manifest_version: 3,\n description: 'description',\n content_scripts: [\n {\n matches: ['https://example.com/*'],\n js: ['src/contentScript/contentScript.ts'],\n css: ['src/contentScript/style.css'],\n run_at: 'document_idle',\n world: 'MAIN',\n connection_isolated: true,\n userscript_direct_inject: true,\n },\n ],\n background: {\n service_worker: 'src/sw/sw.ts',\n },\n icons: {\n 16: 'public/icon/icon16.png',\n 48: 'public/icon/icon48.png',\n 128: 'public/icon/icon128.png',\n },\n action: {\n default_popup: 'src/popup/index.html',\n },\n};\n\nexport default manifest;\n"})}),"\n",(0,i.jsx)(e.h2,{id:"crx-monkey-proprietary-options-defined",children:"CRX MONKEY proprietary options defined"}),"\n",(0,i.jsx)(e.h3,{id:"connection_isolated",children:"connection_isolated"}),"\n",(0,i.jsxs)(e.p,{children:["Enable ",(0,i.jsx)(e.a,{href:"http://localhost:3000/docs/API/introduction#connector-required-api",children:"Connector required API"})," in content scripts."]}),"\n",(0,i.jsx)(e.pre,{children:(0,i.jsx)(e.code,{className:"language-js",children:'{ \n "content_scripts": [\n {\n "connection_isolated": true,\n }\n ]\n}\n'})}),"\n",(0,i.jsx)(e.h3,{id:"userscript_direct_inject",children:"userscript_direct_inject"}),"\n",(0,i.jsx)(e.p,{children:"When run as a user script, it executes the script directly on the page, not on the sandbox."}),"\n",(0,i.jsxs)(e.p,{children:["When this option is enabled, an ",(0,i.jsx)(e.strong,{children:"unsafeWindow"})," is automatically added to the ",(0,i.jsx)(e.strong,{children:"@grant"})," in the userscript header."]}),"\n",(0,i.jsx)(e.pre,{children:(0,i.jsx)(e.code,{className:"language-js",children:'{ \n "content_scripts": [\n {\n "userscript_direct_inject": true\n }\n ]\n}\n'})})]})}function p(n={}){const{wrapper:e}={...(0,s.R)(),...n.components};return e?(0,i.jsx)(e,{...n,children:(0,i.jsx)(l,{...n})}):l(n)}},8453:(n,e,t)=>{t.d(e,{R:()=>c,x:()=>o});var i=t(6540);const s={},r=i.createContext(s);function c(n){const e=i.useContext(r);return i.useMemo((function(){return"function"==typeof n?n(e):{...e,...n}}),[e,n])}function o(n){let e;return e=n.disableParentContext?"function"==typeof n.components?n.components(s):n.components||s:c(n.components),i.createElement(r.Provider,{value:e},n.children)}}}]); \ No newline at end of file diff --git a/assets/js/a019ea88.7bc8c2a1.js b/assets/js/a019ea88.7bc8c2a1.js new file mode 100644 index 0000000..7a804a2 --- /dev/null +++ b/assets/js/a019ea88.7bc8c2a1.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcrx_monkey=self.webpackChunkcrx_monkey||[]).push([[76],{4465:(n,e,t)=>{t.r(e),t.d(e,{assets:()=>a,contentTitle:()=>c,default:()=>p,frontMatter:()=>r,metadata:()=>o,toc:()=>d});var i=t(4848),s=t(8453);const r={},c="Manifest.js",o={id:"manifest",title:"Manifest.js",description:"crx-monkey requires a manifest file called manifest.js to configure the extension.",source:"@site/docs/manifest.md",sourceDirName:".",slug:"/manifest",permalink:"/crx-monkey/docs/manifest",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"userscriptOutput",permalink:"/crx-monkey/docs/Configuring/userscript-output"}},a={},d=[{value:"CRX MONKEY proprietary options defined",id:"crx-monkey-proprietary-options-defined",level:2},{value:"connection_isolated",id:"connection_isolated",level:3},{value:"userscript_direct_inject",id:"userscript_direct_inject",level:3},{value:"bind_GM_api",id:"bind_gm_api",level:3}];function l(n){const e={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",p:"p",pre:"pre",strong:"strong",...(0,s.R)(),...n.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(e.h1,{id:"manifestjs",children:"Manifest.js"}),"\n",(0,i.jsx)(e.p,{children:"crx-monkey requires a manifest file called manifest.js to configure the extension."}),"\n",(0,i.jsxs)(e.p,{children:["This is automatically generated by ",(0,i.jsx)(e.strong,{children:"create-crx-monkey"}),"."]}),"\n",(0,i.jsx)(e.p,{children:"This file exports by default the manifest v3 object with its own options included."}),"\n",(0,i.jsx)(e.pre,{children:(0,i.jsx)(e.code,{className:"language-js",metastring:'title="manifest.js"',children:"/ @ts-check\n\n/** @type {import('crx-monkey').CrxMonkeyManifest} */\nconst manifest = {\n name: 'name',\n version: '1.0.0',\n manifest_version: 3,\n description: 'description',\n content_scripts: [\n {\n matches: ['https://example.com/*'],\n js: ['src/contentScript/contentScript.ts'],\n css: ['src/contentScript/style.css'],\n run_at: 'document_idle',\n world: 'MAIN',\n connection_isolated: true,\n userscript_direct_inject: true,\n bind_GM_api: false\n },\n ],\n background: {\n service_worker: 'src/sw/sw.ts',\n },\n icons: {\n 16: 'public/icon/icon16.png',\n 48: 'public/icon/icon48.png',\n 128: 'public/icon/icon128.png',\n },\n action: {\n default_popup: 'src/popup/index.html',\n },\n};\n\nexport default manifest;\n"})}),"\n",(0,i.jsx)(e.h2,{id:"crx-monkey-proprietary-options-defined",children:"CRX MONKEY proprietary options defined"}),"\n",(0,i.jsx)(e.h3,{id:"connection_isolated",children:"connection_isolated"}),"\n",(0,i.jsxs)(e.p,{children:["Enable ",(0,i.jsx)(e.a,{href:"http://localhost:3000/docs/API/introduction#connector-required-api",children:"Connector required API"})," in content scripts."]}),"\n",(0,i.jsx)(e.pre,{children:(0,i.jsx)(e.code,{className:"language-js",children:'{\n "content_scripts": [\n {\n "connection_isolated": true,\n }\n ]\n}\n'})}),"\n",(0,i.jsx)(e.h3,{id:"userscript_direct_inject",children:"userscript_direct_inject"}),"\n",(0,i.jsx)(e.p,{children:"When run as a user script, it executes the script directly on the page, not on the sandbox."}),"\n",(0,i.jsxs)(e.p,{children:["When this option is enabled, an ",(0,i.jsx)(e.strong,{children:"unsafeWindow"})," is automatically added to the ",(0,i.jsx)(e.strong,{children:"@grant"})," in the userscript header."]}),"\n",(0,i.jsx)(e.pre,{children:(0,i.jsx)(e.code,{className:"language-js",children:'{\n "content_scripts": [\n {\n "userscript_direct_inject": true\n }\n ]\n}\n'})}),"\n",(0,i.jsx)(e.h3,{id:"bind_gm_api",children:"bind_GM_api"}),"\n",(0,i.jsx)(e.pre,{children:(0,i.jsx)(e.code,{className:"language-js",children:'{\n "content_scripts": [\n {\n "bind_GM_api": true\n }\n ]\n}\n'})}),"\n",(0,i.jsxs)(e.p,{children:["This is a means of using the ",(0,i.jsx)(e.strong,{children:"GM API"})," when code is running directly on the DOM with ",(0,i.jsx)(e.strong,{children:"userscript_direct_inject"})," enabled."]}),"\n",(0,i.jsx)(e.p,{children:"We will try to hide as much as possible by using random variable names, but the security is undeniably reduced."})]})}function p(n={}){const{wrapper:e}={...(0,s.R)(),...n.components};return e?(0,i.jsx)(e,{...n,children:(0,i.jsx)(l,{...n})}):l(n)}},8453:(n,e,t)=>{t.d(e,{R:()=>c,x:()=>o});var i=t(6540);const s={},r=i.createContext(s);function c(n){const e=i.useContext(r);return i.useMemo((function(){return"function"==typeof n?n(e):{...e,...n}}),[e,n])}function o(n){let e;return e=n.disableParentContext?"function"==typeof n.components?n.components(s):n.components||s:c(n.components),i.createElement(r.Provider,{value:e},n.children)}}}]); \ No newline at end of file diff --git a/assets/js/runtime~main.a4ee50d7.js b/assets/js/runtime~main.32f0059f.js similarity index 54% rename from assets/js/runtime~main.a4ee50d7.js rename to assets/js/runtime~main.32f0059f.js index b28f2c0..e73b24b 100644 --- a/assets/js/runtime~main.a4ee50d7.js +++ b/assets/js/runtime~main.32f0059f.js @@ -1 +1 @@ -(()=>{"use strict";var e,r,t,a,o,n={},f={};function b(e){var r=f[e];if(void 0!==r)return r.exports;var t=f[e]={id:e,loaded:!1,exports:{}};return n[e].call(t.exports,t,t.exports,b),t.loaded=!0,t.exports}b.m=n,b.c=f,e=[],b.O=(r,t,a,o)=>{if(!t){var n=1/0;for(i=0;i=o)&&Object.keys(b.O).every((e=>b.O[e](t[d])))?t.splice(d--,1):(f=!1,o0&&e[i-1][2]>o;i--)e[i]=e[i-1];e[i]=[t,a,o]},b.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return b.d(r,{a:r}),r},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,b.t=function(e,a){if(1&a&&(e=this(e)),8&a)return e;if("object"==typeof e&&e){if(4&a&&e.__esModule)return e;if(16&a&&"function"==typeof e.then)return e}var o=Object.create(null);b.r(o);var n={};r=r||[null,t({}),t([]),t(t)];for(var f=2&a&&e;"object"==typeof f&&!~r.indexOf(f);f=t(f))Object.getOwnPropertyNames(f).forEach((r=>n[r]=()=>e[r]));return n.default=()=>e,b.d(o,n),o},b.d=(e,r)=>{for(var t in r)b.o(r,t)&&!b.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},b.f={},b.e=e=>Promise.all(Object.keys(b.f).reduce(((r,t)=>(b.f[t](e,r),r)),[])),b.u=e=>"assets/js/"+({25:"77deef4d",48:"a94703ab",61:"1f391b9e",76:"a019ea88",98:"a7bd4aaa",134:"393be207",172:"859ae1b0",235:"a7456010",236:"a056efc5",277:"b529dfa7",401:"17896441",430:"6ebcaa3d",443:"aa248750",456:"2fb76f8b",548:"fa1295b5",583:"1df93b7f",647:"5e95c892",742:"aba21aa0",748:"2fe07672",751:"356028ec",773:"e99b1fbf",835:"405786db",851:"7971bb5c",869:"37ef59b5",886:"0b4e690a",976:"0e384e19"}[e]||e)+"."+{25:"10e2aa1a",48:"4728fa6d",61:"826a26f2",76:"6940ebbf",98:"ca8cad9f",134:"2bff8388",172:"d2debfa5",235:"fbf92928",236:"f4b0cc16",237:"1fdd80f9",277:"4d431d4a",401:"939115c1",430:"9322902e",443:"cec0e58b",456:"66491e9d",548:"91e9f3ae",583:"716e18f6",647:"00d3413e",658:"11e46ade",742:"b603beb4",748:"ad4a5963",751:"d640c797",773:"6de35346",835:"c01b0036",851:"318c7f06",869:"9761c851",886:"01bf43d2",976:"974331f5"}[e]+".js",b.miniCssF=e=>{},b.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),b.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),a={},o="crx-monkey:",b.l=(e,r,t,n)=>{if(a[e])a[e].push(r);else{var f,d;if(void 0!==t)for(var c=document.getElementsByTagName("script"),i=0;i{f.onerror=f.onload=null,clearTimeout(s);var o=a[e];if(delete a[e],f.parentNode&&f.parentNode.removeChild(f),o&&o.forEach((e=>e(t))),r)return r(t)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:f}),12e4);f.onerror=l.bind(null,f.onerror),f.onload=l.bind(null,f.onload),d&&document.head.appendChild(f)}},b.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},b.p="/crx-monkey/",b.gca=function(e){return e={17896441:"401","77deef4d":"25",a94703ab:"48","1f391b9e":"61",a019ea88:"76",a7bd4aaa:"98","393be207":"134","859ae1b0":"172",a7456010:"235",a056efc5:"236",b529dfa7:"277","6ebcaa3d":"430",aa248750:"443","2fb76f8b":"456",fa1295b5:"548","1df93b7f":"583","5e95c892":"647",aba21aa0:"742","2fe07672":"748","356028ec":"751",e99b1fbf:"773","405786db":"835","7971bb5c":"851","37ef59b5":"869","0b4e690a":"886","0e384e19":"976"}[e]||e,b.p+b.u(e)},(()=>{var e={354:0,250:0};b.f.j=(r,t)=>{var a=b.o(e,r)?e[r]:void 0;if(0!==a)if(a)t.push(a[2]);else if(/^(250|354)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>a=e[r]=[t,o]));t.push(a[2]=o);var n=b.p+b.u(r),f=new Error;b.l(n,(t=>{if(b.o(e,r)&&(0!==(a=e[r])&&(e[r]=void 0),a)){var o=t&&("load"===t.type?"missing":t.type),n=t&&t.target&&t.target.src;f.message="Loading chunk "+r+" failed.\n("+o+": "+n+")",f.name="ChunkLoadError",f.type=o,f.request=n,a[1](f)}}),"chunk-"+r,r)}},b.O.j=r=>0===e[r];var r=(r,t)=>{var a,o,n=t[0],f=t[1],d=t[2],c=0;if(n.some((r=>0!==e[r]))){for(a in f)b.o(f,a)&&(b.m[a]=f[a]);if(d)var i=d(b)}for(r&&r(t);c{"use strict";var e,r,t,a,o,n={},f={};function d(e){var r=f[e];if(void 0!==r)return r.exports;var t=f[e]={id:e,loaded:!1,exports:{}};return n[e].call(t.exports,t,t.exports,d),t.loaded=!0,t.exports}d.m=n,d.c=f,e=[],d.O=(r,t,a,o)=>{if(!t){var n=1/0;for(i=0;i=o)&&Object.keys(d.O).every((e=>d.O[e](t[b])))?t.splice(b--,1):(f=!1,o0&&e[i-1][2]>o;i--)e[i]=e[i-1];e[i]=[t,a,o]},d.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return d.d(r,{a:r}),r},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,d.t=function(e,a){if(1&a&&(e=this(e)),8&a)return e;if("object"==typeof e&&e){if(4&a&&e.__esModule)return e;if(16&a&&"function"==typeof e.then)return e}var o=Object.create(null);d.r(o);var n={};r=r||[null,t({}),t([]),t(t)];for(var f=2&a&&e;"object"==typeof f&&!~r.indexOf(f);f=t(f))Object.getOwnPropertyNames(f).forEach((r=>n[r]=()=>e[r]));return n.default=()=>e,d.d(o,n),o},d.d=(e,r)=>{for(var t in r)d.o(r,t)&&!d.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},d.f={},d.e=e=>Promise.all(Object.keys(d.f).reduce(((r,t)=>(d.f[t](e,r),r)),[])),d.u=e=>"assets/js/"+({25:"77deef4d",48:"a94703ab",61:"1f391b9e",76:"a019ea88",98:"a7bd4aaa",134:"393be207",172:"859ae1b0",235:"a7456010",236:"a056efc5",277:"b529dfa7",401:"17896441",430:"6ebcaa3d",443:"aa248750",456:"2fb76f8b",548:"fa1295b5",583:"1df93b7f",647:"5e95c892",742:"aba21aa0",748:"2fe07672",751:"356028ec",773:"e99b1fbf",835:"405786db",851:"7971bb5c",869:"37ef59b5",886:"0b4e690a",976:"0e384e19"}[e]||e)+"."+{25:"10e2aa1a",48:"4728fa6d",61:"826a26f2",76:"7bc8c2a1",98:"ca8cad9f",134:"2bff8388",172:"d2debfa5",235:"fbf92928",236:"f4b0cc16",237:"1fdd80f9",277:"4d431d4a",401:"939115c1",430:"9322902e",443:"cec0e58b",456:"66491e9d",548:"91e9f3ae",583:"716e18f6",647:"00d3413e",658:"11e46ade",742:"b603beb4",748:"ad4a5963",751:"d640c797",773:"6de35346",835:"c01b0036",851:"318c7f06",869:"9761c851",886:"01bf43d2",976:"974331f5"}[e]+".js",d.miniCssF=e=>{},d.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),d.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),a={},o="crx-monkey:",d.l=(e,r,t,n)=>{if(a[e])a[e].push(r);else{var f,b;if(void 0!==t)for(var c=document.getElementsByTagName("script"),i=0;i{f.onerror=f.onload=null,clearTimeout(s);var o=a[e];if(delete a[e],f.parentNode&&f.parentNode.removeChild(f),o&&o.forEach((e=>e(t))),r)return r(t)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:f}),12e4);f.onerror=l.bind(null,f.onerror),f.onload=l.bind(null,f.onload),b&&document.head.appendChild(f)}},d.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.p="/crx-monkey/",d.gca=function(e){return e={17896441:"401","77deef4d":"25",a94703ab:"48","1f391b9e":"61",a019ea88:"76",a7bd4aaa:"98","393be207":"134","859ae1b0":"172",a7456010:"235",a056efc5:"236",b529dfa7:"277","6ebcaa3d":"430",aa248750:"443","2fb76f8b":"456",fa1295b5:"548","1df93b7f":"583","5e95c892":"647",aba21aa0:"742","2fe07672":"748","356028ec":"751",e99b1fbf:"773","405786db":"835","7971bb5c":"851","37ef59b5":"869","0b4e690a":"886","0e384e19":"976"}[e]||e,d.p+d.u(e)},(()=>{var e={354:0,250:0};d.f.j=(r,t)=>{var a=d.o(e,r)?e[r]:void 0;if(0!==a)if(a)t.push(a[2]);else if(/^(250|354)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>a=e[r]=[t,o]));t.push(a[2]=o);var n=d.p+d.u(r),f=new Error;d.l(n,(t=>{if(d.o(e,r)&&(0!==(a=e[r])&&(e[r]=void 0),a)){var o=t&&("load"===t.type?"missing":t.type),n=t&&t.target&&t.target.src;f.message="Loading chunk "+r+" failed.\n("+o+": "+n+")",f.name="ChunkLoadError",f.type=o,f.request=n,a[1](f)}}),"chunk-"+r,r)}},d.O.j=r=>0===e[r];var r=(r,t)=>{var a,o,n=t[0],f=t[1],b=t[2],c=0;if(n.some((r=>0!==e[r]))){for(a in f)d.o(f,a)&&(d.m[a]=f[a]);if(b)var i=b(d)}for(r&&r(t);c getExtensionId | CRX MONKEY - + diff --git a/docs/API/ConnectorRequired/message/index.html b/docs/API/ConnectorRequired/message/index.html index 969947c..7a1286b 100644 --- a/docs/API/ConnectorRequired/message/index.html +++ b/docs/API/ConnectorRequired/message/index.html @@ -4,7 +4,7 @@ Bypass Message API | CRX MONKEY - + diff --git a/docs/API/Normal/get-running-runtime/index.html b/docs/API/Normal/get-running-runtime/index.html index f21db1d..8fcd2dd 100644 --- a/docs/API/Normal/get-running-runtime/index.html +++ b/docs/API/Normal/get-running-runtime/index.html @@ -4,7 +4,7 @@ getRunningRuntime | CRX MONKEY - + diff --git a/docs/API/introduction/index.html b/docs/API/introduction/index.html index ce7e769..564e392 100644 --- a/docs/API/introduction/index.html +++ b/docs/API/introduction/index.html @@ -4,7 +4,7 @@ API Introduction | CRX MONKEY - + diff --git a/docs/Configuring/chrome-output-dir/index.html b/docs/Configuring/chrome-output-dir/index.html index 8b5bb3d..5e78e6c 100644 --- a/docs/Configuring/chrome-output-dir/index.html +++ b/docs/Configuring/chrome-output-dir/index.html @@ -4,7 +4,7 @@ chromeOutputDir | CRX MONKEY - + diff --git a/docs/Configuring/dev-server/index.html b/docs/Configuring/dev-server/index.html index d3c3686..efdecc7 100644 --- a/docs/Configuring/dev-server/index.html +++ b/docs/Configuring/dev-server/index.html @@ -4,7 +4,7 @@ devServer | CRX MONKEY - + diff --git a/docs/Configuring/es-build-options/index.html b/docs/Configuring/es-build-options/index.html index 3bead8f..3c4ecc4 100644 --- a/docs/Configuring/es-build-options/index.html +++ b/docs/Configuring/es-build-options/index.html @@ -4,7 +4,7 @@ esBuildOptions | CRX MONKEY - + diff --git a/docs/Configuring/import-icon-to-userscript/index.html b/docs/Configuring/import-icon-to-userscript/index.html index 84ab232..1fcae71 100644 --- a/docs/Configuring/import-icon-to-userscript/index.html +++ b/docs/Configuring/import-icon-to-userscript/index.html @@ -4,7 +4,7 @@ importIconToUserscript | CRX MONKEY - + diff --git a/docs/Configuring/introduction/index.html b/docs/Configuring/introduction/index.html index c776744..4d41556 100644 --- a/docs/Configuring/introduction/index.html +++ b/docs/Configuring/introduction/index.html @@ -4,7 +4,7 @@ Configuring Introduction | CRX MONKEY - + diff --git a/docs/Configuring/manifest-path/index.html b/docs/Configuring/manifest-path/index.html index 7fcf314..1b25445 100644 --- a/docs/Configuring/manifest-path/index.html +++ b/docs/Configuring/manifest-path/index.html @@ -4,7 +4,7 @@ manifestPath | CRX MONKEY - + diff --git a/docs/Configuring/prettier/index.html b/docs/Configuring/prettier/index.html index 27ab242..40bed4d 100644 --- a/docs/Configuring/prettier/index.html +++ b/docs/Configuring/prettier/index.html @@ -4,7 +4,7 @@ prettier | CRX MONKEY - + diff --git a/docs/Configuring/public-dir/index.html b/docs/Configuring/public-dir/index.html index 3fbec82..80ea490 100644 --- a/docs/Configuring/public-dir/index.html +++ b/docs/Configuring/public-dir/index.html @@ -4,7 +4,7 @@ publicDir | CRX MONKEY - + diff --git a/docs/Configuring/user-script-header/index.html b/docs/Configuring/user-script-header/index.html index 32b0a15..d3dc087 100644 --- a/docs/Configuring/user-script-header/index.html +++ b/docs/Configuring/user-script-header/index.html @@ -4,7 +4,7 @@ userScriptHeader | CRX MONKEY - + diff --git a/docs/Configuring/userscript-output/index.html b/docs/Configuring/userscript-output/index.html index 0bbf8af..f4bbf2e 100644 --- a/docs/Configuring/userscript-output/index.html +++ b/docs/Configuring/userscript-output/index.html @@ -4,7 +4,7 @@ userscriptOutput | CRX MONKEY - + diff --git a/docs/intro/index.html b/docs/intro/index.html index 871a5d2..5e2a137 100644 --- a/docs/intro/index.html +++ b/docs/intro/index.html @@ -4,7 +4,7 @@ Tutorial Intro | CRX MONKEY - + diff --git a/docs/manifest/index.html b/docs/manifest/index.html index b2b89d8..fff6908 100644 --- a/docs/manifest/index.html +++ b/docs/manifest/index.html @@ -4,7 +4,7 @@ Manifest.js | CRX MONKEY - + @@ -12,14 +12,18 @@

crx-monkey requires a manifest file called manifest.js to configure the extension.

This is automatically generated by create-crx-monkey.

This file exports by default the manifest v3 object with its own options included.

-
manifest.js
/ @ts-check

/** @type {import('crx-monkey').CrxMonkeyManifest} */
const manifest = {
name: 'name',
version: '1.0.0',
manifest_version: 3,
description: 'description',
content_scripts: [
{
matches: ['https://example.com/*'],
js: ['src/contentScript/contentScript.ts'],
css: ['src/contentScript/style.css'],
run_at: 'document_idle',
world: 'MAIN',
connection_isolated: true,
userscript_direct_inject: true,
},
],
background: {
service_worker: 'src/sw/sw.ts',
},
icons: {
16: 'public/icon/icon16.png',
48: 'public/icon/icon48.png',
128: 'public/icon/icon128.png',
},
action: {
default_popup: 'src/popup/index.html',
},
};

export default manifest;
+
manifest.js
/ @ts-check

/** @type {import('crx-monkey').CrxMonkeyManifest} */
const manifest = {
name: 'name',
version: '1.0.0',
manifest_version: 3,
description: 'description',
content_scripts: [
{
matches: ['https://example.com/*'],
js: ['src/contentScript/contentScript.ts'],
css: ['src/contentScript/style.css'],
run_at: 'document_idle',
world: 'MAIN',
connection_isolated: true,
userscript_direct_inject: true,
bind_GM_api: false
},
],
background: {
service_worker: 'src/sw/sw.ts',
},
icons: {
16: 'public/icon/icon16.png',
48: 'public/icon/icon48.png',
128: 'public/icon/icon128.png',
},
action: {
default_popup: 'src/popup/index.html',
},
};

export default manifest;

CRX MONKEY proprietary options defined

connection_isolated

Enable Connector required API in content scripts.

-
{ 
"content_scripts": [
{
"connection_isolated": true,
}
]
}
+
{
"content_scripts": [
{
"connection_isolated": true,
}
]
}

userscript_direct_inject

When run as a user script, it executes the script directly on the page, not on the sandbox.

When this option is enabled, an unsafeWindow is automatically added to the @grant in the userscript header.

-
{ 
"content_scripts": [
{
"userscript_direct_inject": true
}
]
}
+
{
"content_scripts": [
{
"userscript_direct_inject": true
}
]
}
+

bind_GM_api

+
{
"content_scripts": [
{
"bind_GM_api": true
}
]
}
+

This is a means of using the GM API when code is running directly on the DOM with userscript_direct_inject enabled.

+

We will try to hide as much as possible by using random variable names, but the security is undeniably reduced.

\ No newline at end of file diff --git a/index.html b/index.html index ceb452a..06f5b40 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ Hello from CRX MONKEY | CRX MONKEY - + diff --git a/ja/404.html b/ja/404.html index 664bdf6..65ecf8d 100644 --- a/ja/404.html +++ b/ja/404.html @@ -4,7 +4,7 @@ ページが見つかりません | CRX MONKEY - + diff --git a/ja/assets/js/a019ea88.8f10a851.js b/ja/assets/js/a019ea88.8f10a851.js deleted file mode 100644 index 65b73fb..0000000 --- a/ja/assets/js/a019ea88.8f10a851.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcrx_monkey=self.webpackChunkcrx_monkey||[]).push([[76],{4465:(n,e,t)=>{t.r(e),t.d(e,{assets:()=>a,contentTitle:()=>c,default:()=>p,frontMatter:()=>r,metadata:()=>o,toc:()=>d});var i=t(4848),s=t(8453);const r={},c="Manifest.js",o={id:"manifest",title:"Manifest.js",description:"crx-monkey requires a manifest file called manifest.js to configure the extension.",source:"@site/docs/manifest.md",sourceDirName:".",slug:"/manifest",permalink:"/crx-monkey/ja/docs/manifest",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"userscriptOutput",permalink:"/crx-monkey/ja/docs/Configuring/userscript-output"}},a={},d=[{value:"CRX MONKEY proprietary options defined",id:"crx-monkey-proprietary-options-defined",level:2},{value:"connection_isolated",id:"connection_isolated",level:3},{value:"userscript_direct_inject",id:"userscript_direct_inject",level:3}];function l(n){const e={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",p:"p",pre:"pre",strong:"strong",...(0,s.R)(),...n.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(e.h1,{id:"manifestjs",children:"Manifest.js"}),"\n",(0,i.jsx)(e.p,{children:"crx-monkey requires a manifest file called manifest.js to configure the extension."}),"\n",(0,i.jsxs)(e.p,{children:["This is automatically generated by ",(0,i.jsx)(e.strong,{children:"create-crx-monkey"}),"."]}),"\n",(0,i.jsx)(e.p,{children:"This file exports by default the manifest v3 object with its own options included."}),"\n",(0,i.jsx)(e.pre,{children:(0,i.jsx)(e.code,{className:"language-js",metastring:'title="manifest.js"',children:"/ @ts-check\n\n/** @type {import('crx-monkey').CrxMonkeyManifest} */\nconst manifest = {\n name: 'name',\n version: '1.0.0',\n manifest_version: 3,\n description: 'description',\n content_scripts: [\n {\n matches: ['https://example.com/*'],\n js: ['src/contentScript/contentScript.ts'],\n css: ['src/contentScript/style.css'],\n run_at: 'document_idle',\n world: 'MAIN',\n connection_isolated: true,\n userscript_direct_inject: true,\n },\n ],\n background: {\n service_worker: 'src/sw/sw.ts',\n },\n icons: {\n 16: 'public/icon/icon16.png',\n 48: 'public/icon/icon48.png',\n 128: 'public/icon/icon128.png',\n },\n action: {\n default_popup: 'src/popup/index.html',\n },\n};\n\nexport default manifest;\n"})}),"\n",(0,i.jsx)(e.h2,{id:"crx-monkey-proprietary-options-defined",children:"CRX MONKEY proprietary options defined"}),"\n",(0,i.jsx)(e.h3,{id:"connection_isolated",children:"connection_isolated"}),"\n",(0,i.jsxs)(e.p,{children:["Enable ",(0,i.jsx)(e.a,{href:"http://localhost:3000/docs/API/introduction#connector-required-api",children:"Connector required API"})," in content scripts."]}),"\n",(0,i.jsx)(e.pre,{children:(0,i.jsx)(e.code,{className:"language-js",children:'{ \n "content_scripts": [\n {\n "connection_isolated": true,\n }\n ]\n}\n'})}),"\n",(0,i.jsx)(e.h3,{id:"userscript_direct_inject",children:"userscript_direct_inject"}),"\n",(0,i.jsx)(e.p,{children:"When run as a user script, it executes the script directly on the page, not on the sandbox."}),"\n",(0,i.jsxs)(e.p,{children:["When this option is enabled, an ",(0,i.jsx)(e.strong,{children:"unsafeWindow"})," is automatically added to the ",(0,i.jsx)(e.strong,{children:"@grant"})," in the userscript header."]}),"\n",(0,i.jsx)(e.pre,{children:(0,i.jsx)(e.code,{className:"language-js",children:'{ \n "content_scripts": [\n {\n "userscript_direct_inject": true\n }\n ]\n}\n'})})]})}function p(n={}){const{wrapper:e}={...(0,s.R)(),...n.components};return e?(0,i.jsx)(e,{...n,children:(0,i.jsx)(l,{...n})}):l(n)}},8453:(n,e,t)=>{t.d(e,{R:()=>c,x:()=>o});var i=t(6540);const s={},r=i.createContext(s);function c(n){const e=i.useContext(r);return i.useMemo((function(){return"function"==typeof n?n(e):{...e,...n}}),[e,n])}function o(n){let e;return e=n.disableParentContext?"function"==typeof n.components?n.components(s):n.components||s:c(n.components),i.createElement(r.Provider,{value:e},n.children)}}}]); \ No newline at end of file diff --git a/ja/assets/js/a019ea88.d245c9f2.js b/ja/assets/js/a019ea88.d245c9f2.js new file mode 100644 index 0000000..12a66f5 --- /dev/null +++ b/ja/assets/js/a019ea88.d245c9f2.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcrx_monkey=self.webpackChunkcrx_monkey||[]).push([[76],{4465:(n,e,t)=>{t.r(e),t.d(e,{assets:()=>a,contentTitle:()=>c,default:()=>p,frontMatter:()=>r,metadata:()=>o,toc:()=>d});var i=t(4848),s=t(8453);const r={},c="Manifest.js",o={id:"manifest",title:"Manifest.js",description:"crx-monkey requires a manifest file called manifest.js to configure the extension.",source:"@site/docs/manifest.md",sourceDirName:".",slug:"/manifest",permalink:"/crx-monkey/ja/docs/manifest",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"userscriptOutput",permalink:"/crx-monkey/ja/docs/Configuring/userscript-output"}},a={},d=[{value:"CRX MONKEY proprietary options defined",id:"crx-monkey-proprietary-options-defined",level:2},{value:"connection_isolated",id:"connection_isolated",level:3},{value:"userscript_direct_inject",id:"userscript_direct_inject",level:3},{value:"bind_GM_api",id:"bind_gm_api",level:3}];function l(n){const e={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",p:"p",pre:"pre",strong:"strong",...(0,s.R)(),...n.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(e.h1,{id:"manifestjs",children:"Manifest.js"}),"\n",(0,i.jsx)(e.p,{children:"crx-monkey requires a manifest file called manifest.js to configure the extension."}),"\n",(0,i.jsxs)(e.p,{children:["This is automatically generated by ",(0,i.jsx)(e.strong,{children:"create-crx-monkey"}),"."]}),"\n",(0,i.jsx)(e.p,{children:"This file exports by default the manifest v3 object with its own options included."}),"\n",(0,i.jsx)(e.pre,{children:(0,i.jsx)(e.code,{className:"language-js",metastring:'title="manifest.js"',children:"/ @ts-check\n\n/** @type {import('crx-monkey').CrxMonkeyManifest} */\nconst manifest = {\n name: 'name',\n version: '1.0.0',\n manifest_version: 3,\n description: 'description',\n content_scripts: [\n {\n matches: ['https://example.com/*'],\n js: ['src/contentScript/contentScript.ts'],\n css: ['src/contentScript/style.css'],\n run_at: 'document_idle',\n world: 'MAIN',\n connection_isolated: true,\n userscript_direct_inject: true,\n bind_GM_api: false\n },\n ],\n background: {\n service_worker: 'src/sw/sw.ts',\n },\n icons: {\n 16: 'public/icon/icon16.png',\n 48: 'public/icon/icon48.png',\n 128: 'public/icon/icon128.png',\n },\n action: {\n default_popup: 'src/popup/index.html',\n },\n};\n\nexport default manifest;\n"})}),"\n",(0,i.jsx)(e.h2,{id:"crx-monkey-proprietary-options-defined",children:"CRX MONKEY proprietary options defined"}),"\n",(0,i.jsx)(e.h3,{id:"connection_isolated",children:"connection_isolated"}),"\n",(0,i.jsxs)(e.p,{children:["Enable ",(0,i.jsx)(e.a,{href:"http://localhost:3000/docs/API/introduction#connector-required-api",children:"Connector required API"})," in content scripts."]}),"\n",(0,i.jsx)(e.pre,{children:(0,i.jsx)(e.code,{className:"language-js",children:'{\n "content_scripts": [\n {\n "connection_isolated": true,\n }\n ]\n}\n'})}),"\n",(0,i.jsx)(e.h3,{id:"userscript_direct_inject",children:"userscript_direct_inject"}),"\n",(0,i.jsx)(e.p,{children:"When run as a user script, it executes the script directly on the page, not on the sandbox."}),"\n",(0,i.jsxs)(e.p,{children:["When this option is enabled, an ",(0,i.jsx)(e.strong,{children:"unsafeWindow"})," is automatically added to the ",(0,i.jsx)(e.strong,{children:"@grant"})," in the userscript header."]}),"\n",(0,i.jsx)(e.pre,{children:(0,i.jsx)(e.code,{className:"language-js",children:'{\n "content_scripts": [\n {\n "userscript_direct_inject": true\n }\n ]\n}\n'})}),"\n",(0,i.jsx)(e.h3,{id:"bind_gm_api",children:"bind_GM_api"}),"\n",(0,i.jsx)(e.pre,{children:(0,i.jsx)(e.code,{className:"language-js",children:'{\n "content_scripts": [\n {\n "bind_GM_api": true\n }\n ]\n}\n'})}),"\n",(0,i.jsxs)(e.p,{children:["This is a means of using the ",(0,i.jsx)(e.strong,{children:"GM API"})," when code is running directly on the DOM with ",(0,i.jsx)(e.strong,{children:"userscript_direct_inject"})," enabled."]}),"\n",(0,i.jsx)(e.p,{children:"We will try to hide as much as possible by using random variable names, but the security is undeniably reduced."})]})}function p(n={}){const{wrapper:e}={...(0,s.R)(),...n.components};return e?(0,i.jsx)(e,{...n,children:(0,i.jsx)(l,{...n})}):l(n)}},8453:(n,e,t)=>{t.d(e,{R:()=>c,x:()=>o});var i=t(6540);const s={},r=i.createContext(s);function c(n){const e=i.useContext(r);return i.useMemo((function(){return"function"==typeof n?n(e):{...e,...n}}),[e,n])}function o(n){let e;return e=n.disableParentContext?"function"==typeof n.components?n.components(s):n.components||s:c(n.components),i.createElement(r.Provider,{value:e},n.children)}}}]); \ No newline at end of file diff --git a/ja/assets/js/runtime~main.a675a14e.js b/ja/assets/js/runtime~main.04ff0398.js similarity index 97% rename from ja/assets/js/runtime~main.a675a14e.js rename to ja/assets/js/runtime~main.04ff0398.js index eb66cfe..02d26b6 100644 --- a/ja/assets/js/runtime~main.a675a14e.js +++ b/ja/assets/js/runtime~main.04ff0398.js @@ -1 +1 @@ -(()=>{"use strict";var e,a,r,t,o,n={},f={};function c(e){var a=f[e];if(void 0!==a)return a.exports;var r=f[e]={id:e,loaded:!1,exports:{}};return n[e].call(r.exports,r,r.exports,c),r.loaded=!0,r.exports}c.m=n,c.c=f,e=[],c.O=(a,r,t,o)=>{if(!r){var n=1/0;for(i=0;i=o)&&Object.keys(c.O).every((e=>c.O[e](r[b])))?r.splice(b--,1):(f=!1,o0&&e[i-1][2]>o;i--)e[i]=e[i-1];e[i]=[r,t,o]},c.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return c.d(a,{a:a}),a},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,c.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var o=Object.create(null);c.r(o);var n={};a=a||[null,r({}),r([]),r(r)];for(var f=2&t&&e;"object"==typeof f&&!~a.indexOf(f);f=r(f))Object.getOwnPropertyNames(f).forEach((a=>n[a]=()=>e[a]));return n.default=()=>e,c.d(o,n),o},c.d=(e,a)=>{for(var r in a)c.o(a,r)&&!c.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:a[r]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce(((a,r)=>(c.f[r](e,a),a)),[])),c.u=e=>"assets/js/"+({25:"77deef4d",48:"a94703ab",61:"1f391b9e",76:"a019ea88",98:"a7bd4aaa",134:"393be207",172:"859ae1b0",235:"a7456010",236:"a056efc5",277:"b529dfa7",401:"17896441",430:"6ebcaa3d",443:"aa248750",456:"2fb76f8b",548:"fa1295b5",583:"1df93b7f",647:"5e95c892",687:"6fb7c549",742:"aba21aa0",748:"2fe07672",751:"356028ec",773:"e99b1fbf",851:"7971bb5c",869:"37ef59b5",886:"0b4e690a",976:"0e384e19"}[e]||e)+"."+{25:"f2f8293a",48:"4728fa6d",61:"826a26f2",76:"8f10a851",98:"ca8cad9f",134:"94903511",172:"4f2f7c28",235:"fbf92928",236:"3962303a",237:"1fdd80f9",277:"6a84f724",401:"939115c1",430:"73bf7c61",443:"ae2ccae0",456:"fbd0fa27",548:"4e621cc2",583:"716e18f6",647:"00d3413e",658:"11e46ade",687:"146b8e6f",742:"b603beb4",748:"77f39776",751:"af63219e",773:"4df34002",851:"0ad485b3",869:"00654736",886:"6a24c8fa",976:"e1032c16"}[e]+".js",c.miniCssF=e=>{},c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),t={},o="crx-monkey:",c.l=(e,a,r,n)=>{if(t[e])t[e].push(a);else{var f,b;if(void 0!==r)for(var d=document.getElementsByTagName("script"),i=0;i{f.onerror=f.onload=null,clearTimeout(s);var o=t[e];if(delete t[e],f.parentNode&&f.parentNode.removeChild(f),o&&o.forEach((e=>e(r))),a)return a(r)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:f}),12e4);f.onerror=l.bind(null,f.onerror),f.onload=l.bind(null,f.onload),b&&document.head.appendChild(f)}},c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.p="/crx-monkey/ja/",c.gca=function(e){return e={17896441:"401","77deef4d":"25",a94703ab:"48","1f391b9e":"61",a019ea88:"76",a7bd4aaa:"98","393be207":"134","859ae1b0":"172",a7456010:"235",a056efc5:"236",b529dfa7:"277","6ebcaa3d":"430",aa248750:"443","2fb76f8b":"456",fa1295b5:"548","1df93b7f":"583","5e95c892":"647","6fb7c549":"687",aba21aa0:"742","2fe07672":"748","356028ec":"751",e99b1fbf:"773","7971bb5c":"851","37ef59b5":"869","0b4e690a":"886","0e384e19":"976"}[e]||e,c.p+c.u(e)},(()=>{var e={354:0,250:0};c.f.j=(a,r)=>{var t=c.o(e,a)?e[a]:void 0;if(0!==t)if(t)r.push(t[2]);else if(/^(250|354)$/.test(a))e[a]=0;else{var o=new Promise(((r,o)=>t=e[a]=[r,o]));r.push(t[2]=o);var n=c.p+c.u(a),f=new Error;c.l(n,(r=>{if(c.o(e,a)&&(0!==(t=e[a])&&(e[a]=void 0),t)){var o=r&&("load"===r.type?"missing":r.type),n=r&&r.target&&r.target.src;f.message="Loading chunk "+a+" failed.\n("+o+": "+n+")",f.name="ChunkLoadError",f.type=o,f.request=n,t[1](f)}}),"chunk-"+a,a)}},c.O.j=a=>0===e[a];var a=(a,r)=>{var t,o,n=r[0],f=r[1],b=r[2],d=0;if(n.some((a=>0!==e[a]))){for(t in f)c.o(f,t)&&(c.m[t]=f[t]);if(b)var i=b(c)}for(a&&a(r);d{"use strict";var e,a,r,t,o,n={},f={};function c(e){var a=f[e];if(void 0!==a)return a.exports;var r=f[e]={id:e,loaded:!1,exports:{}};return n[e].call(r.exports,r,r.exports,c),r.loaded=!0,r.exports}c.m=n,c.c=f,e=[],c.O=(a,r,t,o)=>{if(!r){var n=1/0;for(i=0;i=o)&&Object.keys(c.O).every((e=>c.O[e](r[b])))?r.splice(b--,1):(f=!1,o0&&e[i-1][2]>o;i--)e[i]=e[i-1];e[i]=[r,t,o]},c.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return c.d(a,{a:a}),a},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,c.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var o=Object.create(null);c.r(o);var n={};a=a||[null,r({}),r([]),r(r)];for(var f=2&t&&e;"object"==typeof f&&!~a.indexOf(f);f=r(f))Object.getOwnPropertyNames(f).forEach((a=>n[a]=()=>e[a]));return n.default=()=>e,c.d(o,n),o},c.d=(e,a)=>{for(var r in a)c.o(a,r)&&!c.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:a[r]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce(((a,r)=>(c.f[r](e,a),a)),[])),c.u=e=>"assets/js/"+({25:"77deef4d",48:"a94703ab",61:"1f391b9e",76:"a019ea88",98:"a7bd4aaa",134:"393be207",172:"859ae1b0",235:"a7456010",236:"a056efc5",277:"b529dfa7",401:"17896441",430:"6ebcaa3d",443:"aa248750",456:"2fb76f8b",548:"fa1295b5",583:"1df93b7f",647:"5e95c892",687:"6fb7c549",742:"aba21aa0",748:"2fe07672",751:"356028ec",773:"e99b1fbf",851:"7971bb5c",869:"37ef59b5",886:"0b4e690a",976:"0e384e19"}[e]||e)+"."+{25:"f2f8293a",48:"4728fa6d",61:"826a26f2",76:"d245c9f2",98:"ca8cad9f",134:"94903511",172:"4f2f7c28",235:"fbf92928",236:"3962303a",237:"1fdd80f9",277:"6a84f724",401:"939115c1",430:"73bf7c61",443:"ae2ccae0",456:"fbd0fa27",548:"4e621cc2",583:"716e18f6",647:"00d3413e",658:"11e46ade",687:"146b8e6f",742:"b603beb4",748:"77f39776",751:"af63219e",773:"4df34002",851:"0ad485b3",869:"00654736",886:"6a24c8fa",976:"e1032c16"}[e]+".js",c.miniCssF=e=>{},c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),t={},o="crx-monkey:",c.l=(e,a,r,n)=>{if(t[e])t[e].push(a);else{var f,b;if(void 0!==r)for(var d=document.getElementsByTagName("script"),i=0;i{f.onerror=f.onload=null,clearTimeout(s);var o=t[e];if(delete t[e],f.parentNode&&f.parentNode.removeChild(f),o&&o.forEach((e=>e(r))),a)return a(r)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:f}),12e4);f.onerror=l.bind(null,f.onerror),f.onload=l.bind(null,f.onload),b&&document.head.appendChild(f)}},c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.p="/crx-monkey/ja/",c.gca=function(e){return e={17896441:"401","77deef4d":"25",a94703ab:"48","1f391b9e":"61",a019ea88:"76",a7bd4aaa:"98","393be207":"134","859ae1b0":"172",a7456010:"235",a056efc5:"236",b529dfa7:"277","6ebcaa3d":"430",aa248750:"443","2fb76f8b":"456",fa1295b5:"548","1df93b7f":"583","5e95c892":"647","6fb7c549":"687",aba21aa0:"742","2fe07672":"748","356028ec":"751",e99b1fbf:"773","7971bb5c":"851","37ef59b5":"869","0b4e690a":"886","0e384e19":"976"}[e]||e,c.p+c.u(e)},(()=>{var e={354:0,250:0};c.f.j=(a,r)=>{var t=c.o(e,a)?e[a]:void 0;if(0!==t)if(t)r.push(t[2]);else if(/^(250|354)$/.test(a))e[a]=0;else{var o=new Promise(((r,o)=>t=e[a]=[r,o]));r.push(t[2]=o);var n=c.p+c.u(a),f=new Error;c.l(n,(r=>{if(c.o(e,a)&&(0!==(t=e[a])&&(e[a]=void 0),t)){var o=r&&("load"===r.type?"missing":r.type),n=r&&r.target&&r.target.src;f.message="Loading chunk "+a+" failed.\n("+o+": "+n+")",f.name="ChunkLoadError",f.type=o,f.request=n,t[1](f)}}),"chunk-"+a,a)}},c.O.j=a=>0===e[a];var a=(a,r)=>{var t,o,n=r[0],f=r[1],b=r[2],d=0;if(n.some((a=>0!==e[a]))){for(t in f)c.o(f,t)&&(c.m[t]=f[t]);if(b)var i=b(c)}for(a&&a(r);d getExtensionId | CRX MONKEY - + diff --git a/ja/docs/API/ConnectorRequired/message/index.html b/ja/docs/API/ConnectorRequired/message/index.html index 41b52ec..d39245f 100644 --- a/ja/docs/API/ConnectorRequired/message/index.html +++ b/ja/docs/API/ConnectorRequired/message/index.html @@ -4,7 +4,7 @@ Bypass Message API | CRX MONKEY - + diff --git a/ja/docs/API/Normal/get-running-runtime/index.html b/ja/docs/API/Normal/get-running-runtime/index.html index 665cf31..831b1d3 100644 --- a/ja/docs/API/Normal/get-running-runtime/index.html +++ b/ja/docs/API/Normal/get-running-runtime/index.html @@ -4,7 +4,7 @@ getRunningRuntime | CRX MONKEY - + diff --git a/ja/docs/API/introduction/index.html b/ja/docs/API/introduction/index.html index 70f251b..1fad424 100644 --- a/ja/docs/API/introduction/index.html +++ b/ja/docs/API/introduction/index.html @@ -4,7 +4,7 @@ API Introduction | CRX MONKEY - + diff --git a/ja/docs/Configuring/chrome-output-dir/index.html b/ja/docs/Configuring/chrome-output-dir/index.html index c389518..b7b6510 100644 --- a/ja/docs/Configuring/chrome-output-dir/index.html +++ b/ja/docs/Configuring/chrome-output-dir/index.html @@ -4,7 +4,7 @@ chromeOutputDir | CRX MONKEY - + diff --git a/ja/docs/Configuring/dev-server/index.html b/ja/docs/Configuring/dev-server/index.html index fe97626..4de9bab 100644 --- a/ja/docs/Configuring/dev-server/index.html +++ b/ja/docs/Configuring/dev-server/index.html @@ -4,7 +4,7 @@ devServer | CRX MONKEY - + diff --git a/ja/docs/Configuring/es-build-options/index.html b/ja/docs/Configuring/es-build-options/index.html index 787dfd5..a66a124 100644 --- a/ja/docs/Configuring/es-build-options/index.html +++ b/ja/docs/Configuring/es-build-options/index.html @@ -4,7 +4,7 @@ esBuildOptions | CRX MONKEY - + diff --git a/ja/docs/Configuring/import-icon-to-userscript/index.html b/ja/docs/Configuring/import-icon-to-userscript/index.html index 934b78b..34bceb6 100644 --- a/ja/docs/Configuring/import-icon-to-userscript/index.html +++ b/ja/docs/Configuring/import-icon-to-userscript/index.html @@ -4,7 +4,7 @@ importIconToUserscript | CRX MONKEY - + diff --git a/ja/docs/Configuring/introduction/index.html b/ja/docs/Configuring/introduction/index.html index 7a65273..14219c4 100644 --- a/ja/docs/Configuring/introduction/index.html +++ b/ja/docs/Configuring/introduction/index.html @@ -4,7 +4,7 @@ Configuring Introduction | CRX MONKEY - + diff --git a/ja/docs/Configuring/manifest-path/index.html b/ja/docs/Configuring/manifest-path/index.html index ced3aff..ea23bd6 100644 --- a/ja/docs/Configuring/manifest-path/index.html +++ b/ja/docs/Configuring/manifest-path/index.html @@ -4,7 +4,7 @@ manifestPath | CRX MONKEY - + diff --git a/ja/docs/Configuring/prettier/index.html b/ja/docs/Configuring/prettier/index.html index b68b397..95a0af1 100644 --- a/ja/docs/Configuring/prettier/index.html +++ b/ja/docs/Configuring/prettier/index.html @@ -4,7 +4,7 @@ prettier | CRX MONKEY - + diff --git a/ja/docs/Configuring/public-dir/index.html b/ja/docs/Configuring/public-dir/index.html index c99d822..fad968a 100644 --- a/ja/docs/Configuring/public-dir/index.html +++ b/ja/docs/Configuring/public-dir/index.html @@ -4,7 +4,7 @@ publicDir | CRX MONKEY - + diff --git a/ja/docs/Configuring/user-script-header/index.html b/ja/docs/Configuring/user-script-header/index.html index 2d4f3a0..5e29b80 100644 --- a/ja/docs/Configuring/user-script-header/index.html +++ b/ja/docs/Configuring/user-script-header/index.html @@ -4,7 +4,7 @@ userScriptHeader | CRX MONKEY - + diff --git a/ja/docs/Configuring/userscript-output/index.html b/ja/docs/Configuring/userscript-output/index.html index 9a2a8e9..fa208fa 100644 --- a/ja/docs/Configuring/userscript-output/index.html +++ b/ja/docs/Configuring/userscript-output/index.html @@ -4,7 +4,7 @@ userscriptOutput | CRX MONKEY - + diff --git a/ja/docs/intro/index.html b/ja/docs/intro/index.html index 093332e..7e84fe7 100644 --- a/ja/docs/intro/index.html +++ b/ja/docs/intro/index.html @@ -4,7 +4,7 @@ Tutorial Intro | CRX MONKEY - + diff --git a/ja/docs/manifest/index.html b/ja/docs/manifest/index.html index 29202de..e28d1a7 100644 --- a/ja/docs/manifest/index.html +++ b/ja/docs/manifest/index.html @@ -4,7 +4,7 @@ Manifest.js | CRX MONKEY - + @@ -12,14 +12,18 @@

crx-monkey requires a manifest file called manifest.js to configure the extension.

This is automatically generated by create-crx-monkey.

This file exports by default the manifest v3 object with its own options included.

-
manifest.js
/ @ts-check

/** @type {import('crx-monkey').CrxMonkeyManifest} */
const manifest = {
name: 'name',
version: '1.0.0',
manifest_version: 3,
description: 'description',
content_scripts: [
{
matches: ['https://example.com/*'],
js: ['src/contentScript/contentScript.ts'],
css: ['src/contentScript/style.css'],
run_at: 'document_idle',
world: 'MAIN',
connection_isolated: true,
userscript_direct_inject: true,
},
],
background: {
service_worker: 'src/sw/sw.ts',
},
icons: {
16: 'public/icon/icon16.png',
48: 'public/icon/icon48.png',
128: 'public/icon/icon128.png',
},
action: {
default_popup: 'src/popup/index.html',
},
};

export default manifest;
+
manifest.js
/ @ts-check

/** @type {import('crx-monkey').CrxMonkeyManifest} */
const manifest = {
name: 'name',
version: '1.0.0',
manifest_version: 3,
description: 'description',
content_scripts: [
{
matches: ['https://example.com/*'],
js: ['src/contentScript/contentScript.ts'],
css: ['src/contentScript/style.css'],
run_at: 'document_idle',
world: 'MAIN',
connection_isolated: true,
userscript_direct_inject: true,
bind_GM_api: false
},
],
background: {
service_worker: 'src/sw/sw.ts',
},
icons: {
16: 'public/icon/icon16.png',
48: 'public/icon/icon48.png',
128: 'public/icon/icon128.png',
},
action: {
default_popup: 'src/popup/index.html',
},
};

export default manifest;

CRX MONKEY proprietary options defined

connection_isolated

Enable Connector required API in content scripts.

-
{ 
"content_scripts": [
{
"connection_isolated": true,
}
]
}
+
{
"content_scripts": [
{
"connection_isolated": true,
}
]
}

userscript_direct_inject

When run as a user script, it executes the script directly on the page, not on the sandbox.

When this option is enabled, an unsafeWindow is automatically added to the @grant in the userscript header.

-
{ 
"content_scripts": [
{
"userscript_direct_inject": true
}
]
}
+
{
"content_scripts": [
{
"userscript_direct_inject": true
}
]
}
+

bind_GM_api

+
{
"content_scripts": [
{
"bind_GM_api": true
}
]
}
+

This is a means of using the GM API when code is running directly on the DOM with userscript_direct_inject enabled.

+

We will try to hide as much as possible by using random variable names, but the security is undeniably reduced.

\ No newline at end of file diff --git a/ja/index.html b/ja/index.html index dcef926..68b6725 100644 --- a/ja/index.html +++ b/ja/index.html @@ -4,7 +4,7 @@ Hello from CRX MONKEY | CRX MONKEY - + diff --git a/ja/markdown-page/index.html b/ja/markdown-page/index.html index 720df3b..aaa27a1 100644 --- a/ja/markdown-page/index.html +++ b/ja/markdown-page/index.html @@ -4,7 +4,7 @@ Markdown page example | CRX MONKEY - + diff --git a/markdown-page/index.html b/markdown-page/index.html index e373b3d..083e2ee 100644 --- a/markdown-page/index.html +++ b/markdown-page/index.html @@ -4,7 +4,7 @@ Markdown page example | CRX MONKEY - +