mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
[mv3] Add support to exclude lists from specific platforms
Related discussion: https://github.com/uBlockOrigin/uBOL-home/issues/358#issuecomment-2993687480
This commit is contained in:
parent
219c07609f
commit
e33bfc1f01
2 changed files with 4 additions and 0 deletions
|
|
@ -1413,6 +1413,7 @@ async function main() {
|
|||
);
|
||||
|
||||
for ( const ruleset of rulesets ) {
|
||||
if ( ruleset.excludedPlatforms?.includes(platform) ) { continue; }
|
||||
await rulesetFromURLs(ruleset);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@
|
|||
"name": "Malicious URL Blocklist",
|
||||
"group": "malware",
|
||||
"enabled": true,
|
||||
"excludedPlatforms": [ "safari" ],
|
||||
"urls": [
|
||||
"https://malware-filter.gitlab.io/malware-filter/urlhaus-filter-hosts.txt"
|
||||
],
|
||||
|
|
@ -90,6 +91,7 @@
|
|||
"id": "dpollock-0",
|
||||
"name": "Dan Pollock’s hosts file",
|
||||
"enabled": false,
|
||||
"excludedPlatforms": [ "safari" ],
|
||||
"urls": [
|
||||
"https://someonewhocares.org/hosts/hosts"
|
||||
],
|
||||
|
|
@ -161,6 +163,7 @@
|
|||
"id": "stevenblack-hosts",
|
||||
"name": "Steven Black’s Unified Hosts (adware + malware)",
|
||||
"enabled": false,
|
||||
"excludedPlatforms": [ "safari" ],
|
||||
"urls": [
|
||||
"https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts"
|
||||
],
|
||||
|
|
|
|||
Loading…
Reference in a new issue