feat(browser-extension): add declarativeNetRequest to block cmp.inmobi.com
This commit is contained in:
parent
07a74cb8fc
commit
0c65daaf67
11
.gitignore
vendored
11
.gitignore
vendored
@ -1,8 +1,9 @@
|
||||
_metadata/
|
||||
!.yarn/plugins
|
||||
!.yarn/releases
|
||||
.DS_Store
|
||||
.env
|
||||
.pnp.*
|
||||
.yarn/*
|
||||
!.yarn/releases
|
||||
!.yarn/plugins
|
||||
build
|
||||
node_modules
|
||||
.env
|
||||
build/
|
||||
node_modules/
|
||||
|
@ -1,2 +1,2 @@
|
||||
package.json
|
||||
.yarnrc.yml
|
||||
.yarnrc.yml
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"manifest_version": 3,
|
||||
"name": "Cookie Dialog Monster",
|
||||
"version": "7.0.3",
|
||||
"version": "7.0.4",
|
||||
"default_locale": "en",
|
||||
"description": "__MSG_appDesc__",
|
||||
"icons": {
|
||||
@ -52,8 +52,17 @@
|
||||
"run_at": "document_start"
|
||||
}
|
||||
],
|
||||
"declarative_net_request": {
|
||||
"rule_resources": [
|
||||
{
|
||||
"enabled": true,
|
||||
"id": "ruleset",
|
||||
"path": "rules.json"
|
||||
}
|
||||
]
|
||||
},
|
||||
"host_permissions": ["http://*/*", "https://*/*"],
|
||||
"permissions": ["contextMenus", "scripting", "storage"],
|
||||
"permissions": ["contextMenus", "declarativeNetRequest", "scripting", "storage"],
|
||||
"web_accessible_resources": [
|
||||
{
|
||||
"matches": ["http://*/*", "https://*/*"],
|
||||
|
13
packages/browser-extension/src/rules.json
Normal file
13
packages/browser-extension/src/rules.json
Normal file
@ -0,0 +1,13 @@
|
||||
[
|
||||
{
|
||||
"id": 1,
|
||||
"priority": 1,
|
||||
"action": {
|
||||
"type": "block"
|
||||
},
|
||||
"condition": {
|
||||
"urlFilter": "||cmp.inmobi.com^",
|
||||
"resourceTypes": ["script"]
|
||||
}
|
||||
}
|
||||
]
|
Loading…
Reference in New Issue
Block a user