ruffle/web/packages/extension/manifest_other.json5

61 lines
1.8 KiB
Plaintext

{
"manifest_version": 3,
"name": "Ruffle - Flash Emulator",
"short_name": "Ruffle",
"version": null, // Filled by Webpack.
"default_locale": "en",
"description": "__MSG_description__",
"homepage_url": "https://ruffle.rs/",
"action": {
"default_popup": "popup.html"
},
"background": {
"service_worker": "dist/background.js"
},
"content_scripts": [
{
"matches": ["<all_urls>"],
"exclude_matches": [
"https://sso.godaddy.com/*",
"https://authentication.td.com/*",
"https://*.twitch.tv/*",
"https://www.tuxedocomputers.com/*",
"https://*.taobao.com/*",
],
"js": ["dist/content.js"],
"all_frames": true,
"run_at": "document_start",
}
],
"content_security_policy": {
extension_pages: "default-src 'self'; script-src 'wasm-unsafe-eval' 'self'; style-src 'unsafe-inline'; connect-src *; media-src *; img-src data:;"
},
"icons": {
"16": "images/icon16.png",
"32": "images/icon32.png",
"48": "images/icon48.png",
"128": "images/icon128.png",
"180": "images/icon180.png",
},
"options_ui": {
"page": "options.html",
"open_in_tab": true,
},
"host_permissions": ["<all_urls>"], // To allow script injecting + the internal player to bypass CORS
"permissions": [
"storage",
"scripting",
],
"web_accessible_resources": [{
"resources": ["*"],
"matches": ["<all_urls>"],
}],
// Chrome runs the extension in a single shared process by default,
// which prevents extension pages from loading in Incognito tabs
"incognito": "split",
}