mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-07 03:12:33 +01:00
f6f85ec793
It works similarly to the xhr intercepting, except here the window.open global function is being overridden. Note that it could only work if the site's Content Security Policy allows inline scripts, and the script on the webpage doesn't have a copy of the original window.open function (it can happen only if the page has an inline script in its head element, where the reference to the original function can be obtained - likely this cannot be prevented in Safari).
61 lines
1.5 KiB
JSON
61 lines
1.5 KiB
JSON
{
|
|
"manifest_version": 2,
|
|
"minimum_chrome_version": "22.0",
|
|
"default_locale": "{def_lang}",
|
|
"update_url": "https://clients2.google.com/service/update2/crx",
|
|
|
|
"version": "{version}",
|
|
"name": "{name}",
|
|
"description": "__MSG_extShortDesc__",
|
|
"homepage_url": "{url}",
|
|
"author": "{author}",
|
|
"developer": {
|
|
"name": "{author}",
|
|
"email": "{author_email}"
|
|
},
|
|
|
|
"icons": {
|
|
"16": "img/icon_16.png",
|
|
"128": "img/icon_128.png"
|
|
},
|
|
|
|
"permissions": [
|
|
"contextMenus",
|
|
"storage",
|
|
"tabs",
|
|
"unlimitedStorage",
|
|
"webNavigation",
|
|
"webRequest",
|
|
"webRequestBlocking",
|
|
"http://*/*",
|
|
"https://*/*"
|
|
],
|
|
|
|
"background": {
|
|
"page": "background.html"
|
|
},
|
|
"options_page": "dashboard.html",
|
|
"content_scripts": [
|
|
{
|
|
"matches": ["http://*/*", "https://*/*"],
|
|
"js": ["js/vapi-client.js", "js/contentscript-start.js"],
|
|
"run_at": "document_start",
|
|
"all_frames": true
|
|
},
|
|
{
|
|
"matches": ["http://*/*", "https://*/*"],
|
|
"js": ["js/contentscript-end.js"],
|
|
"run_at": "document_end",
|
|
"all_frames": true
|
|
}
|
|
],
|
|
|
|
"browser_action": {
|
|
"default_icon": {
|
|
"19": "img/browsericons/icon19-off.png",
|
|
"38": "img/browsericons/icon38-off.png"
|
|
},
|
|
"default_title": "{name}",
|
|
"default_popup": "popup.html"
|
|
}
|
|
} |