From 0644918e050494ff0824a0479f43d27b36741681 Mon Sep 17 00:00:00 2001 From: Maxim Tsoy Date: Fri, 6 Dec 2024 20:41:41 +0100 Subject: [PATCH] Add a feake filterlist rule for testing --- rules/filterlist.txt | 2 +- rules/filterlists/overrides.txt | 1 + scripts/rebuild-filterlist.mjs | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/rules/filterlist.txt b/rules/filterlist.txt index 42cd87e9..74a55ce9 100644 --- a/rules/filterlist.txt +++ b/rules/filterlist.txt @@ -28252,4 +28252,4 @@ concursolutions.com,forbes.com,formula1.com,fortune.com,proximus.be,proximustv.b @@||duckduckgo.com^$document @@||duckduckgo.com^$elemhide ! domain-level exceptions above are not working with the adblocker library - +privacy-test-pages.site,first-party.example###privacy-test-page-cmp-test-banner-filterlist diff --git a/rules/filterlists/overrides.txt b/rules/filterlists/overrides.txt index 0566f54e..49c3f1fd 100644 --- a/rules/filterlists/overrides.txt +++ b/rules/filterlists/overrides.txt @@ -1,3 +1,4 @@ @@||duckduckgo.com^$document @@||duckduckgo.com^$elemhide ! domain-level exceptions above are not working with the adblocker library +privacy-test-pages.site,first-party.example###privacy-test-page-cmp-test-banner-filterlist diff --git a/scripts/rebuild-filterlist.mjs b/scripts/rebuild-filterlist.mjs index 7bb42187..e47176f6 100644 --- a/scripts/rebuild-filterlist.mjs +++ b/scripts/rebuild-filterlist.mjs @@ -13,6 +13,7 @@ const filterlistContent = ` [Adblock Plus 2.0] ! Title: CPM Cosmetic Filter List ! Based on EasyList ${easylistRevision} +! DO NOT EDIT MANUALLY, your changes will be lost ! Generated on ${new Date().toISOString()} !------------------------General element hiding rules-------------------------! ${fs.readFileSync(path.join(rulesDir, 'filterlists', 'easylist_cookie_general_hide.txt'), 'utf-8')}