From 03e63c1782371e62b44f2903c9309e9687eb63e0 Mon Sep 17 00:00:00 2001 From: Alex <1188@i.ua> Date: Wed, 15 Nov 2017 16:13:23 +0200 Subject: [PATCH] yandex.ru - removed dangerous rule --- ExperimentalFilter/sections/Dangerous/filter.txt | 4 ++++ RussianFilter/sections/general_extensions.txt | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ExperimentalFilter/sections/Dangerous/filter.txt b/ExperimentalFilter/sections/Dangerous/filter.txt index 4d6e5174cba..625531333b9 100644 --- a/ExperimentalFilter/sections/Dangerous/filter.txt +++ b/ExperimentalFilter/sections/Dangerous/filter.txt @@ -11,6 +11,10 @@ ! fake browser update ~junodownload.com#%#document.onmouseout = null; window.onbeforeunload = null; window.blur = null; ! +! Yandex Weather - test rule(not for maps) +!+ NOT_PLATFORM(windows, mac, android) +! *do not enable* yandex.ru#%#AG_onLoad(function() { if (window.location.href.indexOf("pogoda") != -1 && window.location.href.indexOf("nowcast") == -1) { Object.defineProperty(HTMLScriptElement.prototype, 'src', {writable:false}) } }); +! ! https://github.com/AdguardTeam/AdguardFilters/issues/4983 mobiflip.de##div[data-widget="plista_widget_belowArticle"] ~ h4.post-header ! https://forum.adguard.com/index.php?threads/20885/ diff --git a/RussianFilter/sections/general_extensions.txt b/RussianFilter/sections/general_extensions.txt index dc1d9f6b3ca..3cdecb75296 100644 --- a/RussianFilter/sections/general_extensions.txt +++ b/RussianFilter/sections/general_extensions.txt @@ -1,9 +1,6 @@ !----------------------- !------- JS ------------ !----------------------- -! Yandex Weather - test rule(not for maps) -!+ NOT_PLATFORM(windows, mac, android) -yandex.ru#%#AG_onLoad(function() { if (window.location.href.indexOf("pogoda") != -1 && window.location.href.indexOf("nowcast") == -1) { Object.defineProperty(HTMLScriptElement.prototype, 'src', {writable:false}) } }); ! !### TEMPORARY ### ! Отключаем MutationObserver для предотвращения удаления стилей (не актуально)