mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
7e1868b1c3
Related Chromium issue: - https://bugs.chromium.org/p/chromium/issues/detail?id=985759 By expressly restricting JavaScript execution to only code from the extension package, this explicitly tells code reviewer that uBO can't execute remote code. I also had to add `object-src 'self'`, otherwise Chromium refused to load the extension with the following error message: > 'content_security_policy': CSP directive 'object-src' must be specified `object-src 'self'` is the default value.
90 lines
1.9 KiB
JSON
90 lines
1.9 KiB
JSON
{
|
|
"author": "All uBlock Origin contributors",
|
|
"background": {
|
|
"page": "background.html"
|
|
},
|
|
"browser_action": {
|
|
"default_icon": {
|
|
"16": "img/icon_16.png",
|
|
"32": "img/icon_32.png"
|
|
},
|
|
"default_title": "uBlock Origin",
|
|
"default_popup": "popup.html"
|
|
},
|
|
"commands": {
|
|
"launch-element-zapper": {
|
|
"description": "__MSG_popupTipZapper__"
|
|
},
|
|
"launch-element-picker": {
|
|
"description": "__MSG_popupTipPicker__"
|
|
},
|
|
"launch-logger": {
|
|
"description": "__MSG_popupTipLog__"
|
|
},
|
|
"relax-blocking-mode": {
|
|
"description": "__MSG_relaxBlockingMode__"
|
|
}
|
|
},
|
|
"content_scripts": [
|
|
{
|
|
"matches": [
|
|
"http://*/*",
|
|
"https://*/*"
|
|
],
|
|
"js": [
|
|
"/js/vapi.js",
|
|
"/js/vapi-client.js",
|
|
"/js/contentscript.js"
|
|
],
|
|
"run_at": "document_start",
|
|
"all_frames": true
|
|
},
|
|
{
|
|
"matches": [
|
|
"http://*/*",
|
|
"https://*/*"
|
|
],
|
|
"js": [
|
|
"/js/scriptlets/subscriber.js"
|
|
],
|
|
"run_at": "document_idle",
|
|
"all_frames": false
|
|
}
|
|
],
|
|
"content_security_policy": "script-src 'self'; object-src 'self'",
|
|
"default_locale": "en",
|
|
"description": "__MSG_extShortDesc__",
|
|
"icons": {
|
|
"16": "img/icon_16.png",
|
|
"32": "img/icon_32.png",
|
|
"64": "img/icon_64.png",
|
|
"128": "img/icon_128.png"
|
|
},
|
|
"incognito": "split",
|
|
"manifest_version": 2,
|
|
"minimum_chrome_version": "51.0",
|
|
"name": "uBlock Origin",
|
|
"options_ui": {
|
|
"page": "dashboard.html",
|
|
"open_in_tab": true
|
|
},
|
|
"permissions": [
|
|
"contextMenus",
|
|
"privacy",
|
|
"storage",
|
|
"tabs",
|
|
"unlimitedStorage",
|
|
"webNavigation",
|
|
"webRequest",
|
|
"webRequestBlocking",
|
|
"<all_urls>"
|
|
],
|
|
"short_name": "uBlock₀",
|
|
"storage": {
|
|
"managed_schema": "managed_storage.json"
|
|
},
|
|
"version": "1.15.11.0",
|
|
"web_accessible_resources": [
|
|
"/web_accessible_resources/*"
|
|
]
|
|
}
|