1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-06 10:52:38 +01:00
uBlock/platform/opera/manifest.json
Raymond Hill 6acf97bf51
Rewrite cname uncloaking code to account for new ipaddress= option
This commit makes the DNS resolution code better suited for both
filtering on cname and ip address. The change allows early availability
of ip address so that `ipaddress=` option can be matched at
onBeforeRequest time.

As a result, it is now possible to block root document using
`ipaddress=` option -- so long as an ip address can be extracted
before first onBeforeRequest() call.

Related issue:
https://github.com/uBlockOrigin/uBlock-issues/issues/2792

Caveat
------

the ip address used is the first one among the list of ip
addresses returned by dns.resolve() method. There is no way for uBO
to know which exact ip address will be used by the browser when
sending the request, so this is at most a best guess. The exact IP
address used by the browser is available at onHeadersReceived time,
and uBO will also filter according to this value, but by then the
network request has already been sent to the remote server.

Possibly a future improvement would make available the whole list
of ip addresses to the filtering engine, but even then it's impossible
to know with certainty which ip address will ultimately be used by the
browser -- it is entirely possible that the ip address used by the
browser might not be in the list received through dns.resolve().
2024-09-12 11:19:57 -04:00

120 lines
2.7 KiB
JSON

{
"author": "Raymond Hill & contributors",
"background": {
"page": "background.html"
},
"browser_action": {
"default_icon": {
"16": "img/icon_16.png",
"32": "img/icon_32.png",
"64": "img/icon_64.png"
},
"default_popup": "popup-fenix.html",
"default_title": "uBlock Origin"
},
"commands": {
"launch-element-picker": {
"description": "__MSG_popupTipPicker__"
},
"launch-element-zapper": {
"description": "__MSG_popupTipZapper__"
},
"launch-logger": {
"description": "__MSG_popupTipLog__"
},
"open-dashboard": {
"description": "__MSG_popupTipDashboard__"
},
"relax-blocking-mode": {
"description": "__MSG_relaxBlockingMode__"
},
"toggle-cosmetic-filtering": {
"description": "__MSG_toggleCosmeticFiltering__"
},
"toggle-javascript": {
"description": "__MSG_toggleJavascript__"
}
},
"content_scripts": [
{
"matches": [
"http://*/*",
"https://*/*"
],
"js": [
"js/vapi.js",
"js/vapi-client.js",
"js/contentscript.js"
],
"all_frames": true,
"match_about_blank": true,
"run_at": "document_start"
},
{
"matches": [
"https://easylist.to/*",
"https://*.fanboy.co.nz/*",
"https://filterlists.com/*",
"https://forums.lanik.us/*",
"https://github.com/*",
"https://*.github.io/*"
],
"js": [
"/js/scriptlets/subscriber.js"
],
"run_at": "document_idle",
"all_frames": false
},
{
"matches": [
"https://github.com/uBlockOrigin/*",
"https://ublockorigin.github.io/*",
"https://*.reddit.com/r/uBlockOrigin/*"
],
"js": [
"/js/scriptlets/updater.js"
],
"run_at": "document_idle",
"all_frames": false
}
],
"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_opera_version": "67.0",
"name": "uBlock Origin",
"options_page": "dashboard.html",
"permissions": [
"alarms",
"contextMenus",
"privacy",
"storage",
"tabs",
"unlimitedStorage",
"webNavigation",
"webRequest",
"webRequestBlocking",
"<all_urls>"
],
"short_name": "uBlock₀",
"sidebar_action": {
"default_icon": {
"16": "img/icon_16.png",
"32": "img/icon_32.png"
},
"default_panel": "logger-ui.html",
"default_title": "__MSG_statsPageName__"
},
"version": "1.14.23.17",
"web_accessible_resources": [
"/web_accessible_resources/*"
]
}