From 301bf9554ac5f9b0d3d8f7983577e7b888d05a8d Mon Sep 17 00:00:00 2001 From: Alex <1188@i.ua> Date: Tue, 13 Jun 2017 13:39:44 +0300 Subject: [PATCH] Hints testing https://github.com/AdguardTeam/AdguardFilters/issues/3708 --- .../sections/Dangerous/filter.txt | 81 ++++++++++++++++++- ExperimentalFilter/sections/Other/filter.txt | 1 - 2 files changed, 80 insertions(+), 2 deletions(-) diff --git a/ExperimentalFilter/sections/Dangerous/filter.txt b/ExperimentalFilter/sections/Dangerous/filter.txt index b93a725eaeb..e84623e7df3 100644 --- a/ExperimentalFilter/sections/Dangerous/filter.txt +++ b/ExperimentalFilter/sections/Dangerous/filter.txt @@ -57,4 +57,83 @@ focus.de#%#AG_onLoad(function() { $('div[class^="surftippTitle"]').closest('div[ ! https://forum.adguard.com/index.php?threads/12079/ multiup.org##div[class^="span"] > div[class="well"][style^="height"] ! https://github.com/AdguardTeam/AdguardForAndroid/issues/718 -pocketnow.com##div+center > small \ No newline at end of file +pocketnow.com##div+center > small +! +!############################################################## +!############################################################## +!############################################################## +! +! https://github.com/AdguardTeam/AdguardFilters/issues/3708 +! Hints testing +! +!+ HINT_NAME1(PARAMS) HINT_NAME2(PARAMS) +! +! List of existing platforms: +! +! windows -- Adguard for Windows (https://filters.adtidy.org/windows/filters/5.txt) +! mac -- Adguard for Mac (https://filters.adtidy.org/mac/filters/5.txt) +! android -- Adguard for Android (https://filters.adtidy.org/android/filters/5.txt) +! ios -- Adguard for iOS (https://filters.adtidy.org/ios/filters/5.txt) +! ext_chromium -- Adguard browser extension for Chrome (https://filters.adtidy.org/extension/chromium/filters/5.txt) +! ext_ff -- Adguard browser extension for Firefox (https://filters.adtidy.org/extension/firefox/filters/5.txt) +! ext_safari -- Adguard browser extension for Safari (https://filters.adtidy.org/extension/safari/filters/5.txt) +! ext_android_cb -- Adguard Content Blocker (https://filters.adtidy.org/extension/android-content-blocker/filters/5.txt) +! Examples: +! This rule will be available for Windows, Mac, and Android only: +! !+ PLATFORM(windows,mac,android) +! ||example.org^ +! This rule will be available for every platform except Safari extension, iOS, and Android content blocker: +! !+ NOT_PLATFORM(ext_safari, ext_android_cb, ios) +! ||example.org^ +! +! +!+ PLATFORM(windows) +||test-windows.org^ +!+ PLATFORM(mac) +||test-mac.org^ +!+ PLATFORM(android) +||test-android.org^ +!+ PLATFORM(ios) +||test-ios.org^ +!+ PLATFORM(ext_chromium) +||test-ext_chromium.org^ +!+ PLATFORM(ext_ff) +||test-ext_ff.org^ +!+ PLATFORM(ext_safari) +||test-ext_safari.org^ +!+ PLATFORM(ext_android_cb) +||test-ext_android_cb.org^ +! +! +!+ NOT_PLATFORM(windows) +||test-NOT-windows.org^ +!+ NOT_PLATFORM(mac) +||test-NOT-mac.org^ +!+ NOT_PLATFORM(android) +||test-NOT-android.org^ +!+ NOT_PLATFORM(ios) +||test-NOT-ios.org^ +!+ NOT_PLATFORM(ext_chromium) +||test-NOT-ext_chromium.org^ +!+ NOT_PLATFORM(ext_ff) +||test-NOT-ext_ff.org^ +!+ NOT_PLATFORM(ext_safari) +||test-NOT-ext_safari.org^ +!+ NOT_PLATFORM(ext_android_cb) +||test-NOT-ext_android_cb.org^ +! +! +!+ PLATFORM(windows,mac,android) +||test-windows-mac-android.org^ +! +! +!+ NOT_PLATFORM(windows,mac,android) +||test-NOT-windows-mac-android.org^ +! +! +!+ NOT_PLATFORM(ext_android_cb, ext_ff, ext_safari, ios) +||test-NOT-ext_android_cb-ext_ff-ext_safari-ios^ +! +! +!+ PLATFORM(ext_android_cb, ext_ff, ext_safari, ios) +||test-ext_android_cb-ext_ff-ext_safari-ios^ \ No newline at end of file diff --git a/ExperimentalFilter/sections/Other/filter.txt b/ExperimentalFilter/sections/Other/filter.txt index b075e7d517c..db32015c726 100644 --- a/ExperimentalFilter/sections/Other/filter.txt +++ b/ExperimentalFilter/sections/Other/filter.txt @@ -4,4 +4,3 @@ ! antiblock.org test page antiblock.org#%#var AG_AntiAntiBlock = function() { var baseCreateElement = document.createElement; document.createElement = function(name) { if (name && name.match(/div|font|center/i)) { return null; } else { return baseCreateElement(name); } } }; antiblock.org#%#AG_onLoad(function() { AG_AntiAntiBlock(); }); -!------------------------------------------------ \ No newline at end of file