[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:
Raymond Hill 2025-06-22 12:07:06 -04:00
parent 219c07609f
commit e33bfc1f01
No known key found for this signature in database
GPG key ID: 25E1490B761470C2
2 changed files with 4 additions and 0 deletions

View file

@ -1413,6 +1413,7 @@ async function main() {
);
for ( const ruleset of rulesets ) {
if ( ruleset.excludedPlatforms?.includes(platform) ) { continue; }
await rulesetFromURLs(ruleset);
}

View file

@ -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 Pollocks hosts file",
"enabled": false,
"excludedPlatforms": [ "safari" ],
"urls": [
"https://someonewhocares.org/hosts/hosts"
],
@ -161,6 +163,7 @@
"id": "stevenblack-hosts",
"name": "Steven Blacks Unified Hosts (adware + malware)",
"enabled": false,
"excludedPlatforms": [ "safari" ],
"urls": [
"https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts"
],