aboutsummaryrefslogtreecommitdiff
path: root/dev/data
diff options
context:
space:
mode:
authorDarius Jahandarie <djahandarie@gmail.com>2023-11-09 13:30:31 +0000
committerGitHub <noreply@github.com>2023-11-09 13:30:31 +0000
commit5c5a167b4792af379cdacf633513cebf20728cd2 (patch)
tree5b6be3620a557d0b9177047003f6d742d9d2a32d /dev/data
parentb64f51c3b13a46af4dd7f1e43048ac19c781ca7b (diff)
parent0f4d36938fd0d844f548aa5a7f7e7842df8dfb41 (diff)
Merge pull request #307 from themoeway/modernize
Modernize codebase
Diffstat (limited to 'dev/data')
-rw-r--r--dev/data/manifest-variants.json55
1 files changed, 19 insertions, 36 deletions
diff --git a/dev/data/manifest-variants.json b/dev/data/manifest-variants.json
index 1eae2112..e6113b75 100644
--- a/dev/data/manifest-variants.json
+++ b/dev/data/manifest-variants.json
@@ -28,7 +28,8 @@
"default_popup": "action-popup.html"
},
"background": {
- "service_worker": "sw.js"
+ "service_worker": "sw.js",
+ "type": "module"
},
"content_scripts": [
{
@@ -41,28 +42,7 @@
"match_about_blank": true,
"all_frames": true,
"js": [
- "js/core.js",
- "js/yomichan.js",
- "js/app/frontend.js",
- "js/app/popup.js",
- "js/app/popup-factory.js",
- "js/app/popup-proxy.js",
- "js/app/popup-window.js",
- "js/app/theme-controller.js",
- "js/comm/api.js",
- "js/comm/cross-frame-api.js",
- "js/comm/frame-ancestry-handler.js",
- "js/comm/frame-client.js",
- "js/comm/frame-offset-forwarder.js",
- "js/data/sandbox/string-util.js",
- "js/dom/dom-text-scanner.js",
- "js/dom/document-util.js",
- "js/dom/text-source-element.js",
- "js/dom/text-source-range.js",
- "js/input/hotkey-handler.js",
- "js/language/text-scanner.js",
- "js/script/dynamic-loader.js",
- "js/app/content-script-main.js"
+ "js/app/content-script-wrapper.js"
]
}
],
@@ -118,7 +98,8 @@
{
"resources": [
"popup.html",
- "template-renderer.html"
+ "template-renderer.html",
+ "js/*"
],
"matches": [
"<all_urls>"
@@ -141,8 +122,7 @@
"inherit": "base",
"fileName": "yomitan-chrome.zip",
"excludeFiles": [
- "background.html",
- "js/dom/native-simple-dom-parser.js"
+ "background.html"
]
},
{
@@ -187,7 +167,9 @@
"path": [
"permissions"
],
- "items": ["clipboardRead"]
+ "items": [
+ "clipboardRead"
+ ]
}
]
},
@@ -204,6 +186,13 @@
]
},
{
+ "action": "delete",
+ "path": [
+ "background",
+ "type"
+ ]
+ },
+ {
"action": "set",
"path": [
"background",
@@ -268,9 +257,7 @@
"sw.js",
"offscreen.html",
"js/background/offscreen.js",
- "js/background/offscreen-main.js",
- "js/dom/simple-dom-parser.js",
- "lib/parse5.js"
+ "js/background/offscreen-main.js"
]
},
{
@@ -319,9 +306,7 @@
"sw.js",
"offscreen.html",
"js/background/offscreen.js",
- "js/background/offscreen-main.js",
- "js/dom/simple-dom-parser.js",
- "lib/parse5.js"
+ "js/background/offscreen-main.js"
]
},
{
@@ -368,9 +353,7 @@
"sw.js",
"offscreen.html",
"js/background/offscreen.js",
- "js/background/offscreen-main.js",
- "js/dom/simple-dom-parser.js",
- "lib/parse5.js"
+ "js/background/offscreen-main.js"
]
}
]