From 00b790ce7210d7faa9b5a06d748d415bc1879056 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Thu, 13 Aug 2020 09:32:34 -0400 Subject: [PATCH] Add support for more `!#if` pre-parser directive tokens Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/1205 --- src/js/storage.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/js/storage.js b/src/js/storage.js index 957294755..accec2d0f 100644 --- a/src/js/storage.js +++ b/src/js/storage.js @@ -951,14 +951,23 @@ self.addEventListener('hiddenSettingsChanged', ( ) => { [ 'cap_html_filtering', 'html_filtering' ], [ 'cap_user_stylesheet', 'user_stylesheet' ], [ 'false', 'false' ], + // Hoping ABP-only list maintainers can at least make use of it to + // help non-ABP content blockers better deal with filter benefiting + // only ABP. + [ 'ext_abp', 'false' ], // Compatibility with other blockers // https://kb.adguard.com/en/general/how-to-create-your-own-ad-filters#adguard-specific [ 'adguard', 'adguard' ], + [ 'adguard_app_android', 'false' ], + [ 'adguard_app_ios', 'false' ], + [ 'adguard_app_mac', 'false' ], [ 'adguard_app_windows', 'false' ], + [ 'adguard_ext_android_cb', 'false' ], [ 'adguard_ext_chromium', 'chromium' ], [ 'adguard_ext_edge', 'edge' ], [ 'adguard_ext_firefox', 'firefox' ], [ 'adguard_ext_opera', 'chromium' ], + [ 'adguard_ext_safari', 'false' ], ]), };