From be00fd460115cccfa78740fc8e2845d7c4640368 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 16 Mar 2017 20:41:40 -0400 Subject: [PATCH 1/2] Add prevention.com adblock --- anti-adblock-killer.user.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/anti-adblock-killer.user.js b/anti-adblock-killer.user.js index 145653f73..c16c07ad7 100644 --- a/anti-adblock-killer.user.js +++ b/anti-adblock-killer.user.js @@ -5014,6 +5014,18 @@ ]; } }, + prevention_com : { + host : ['prevention.com'], + onIdle : function () { + for (let item of document.body.getElementsByClassName("block")) { + item.style.visibility = "hidden"; + } + + for (let item of document.querySelectorAll(".ad-blocker-custom-blur")) { + item.className= ""; + } + } + }, ad_defend_uab : { // note: when adblock detected inject new ads // userscript: https://openuserjs.org/scripts/schwarztee/AdDefend_Klatsche @@ -5774,4 +5786,4 @@ Aak.initialize(); -})(window); \ No newline at end of file +})(window); From 476e4fa39c835df06cbb4023df408f43961ba36f Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 16 Mar 2017 20:47:54 -0400 Subject: [PATCH 2/2] Change callback event for Prevention.com --- anti-adblock-killer.user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anti-adblock-killer.user.js b/anti-adblock-killer.user.js index c16c07ad7..e97469d4b 100644 --- a/anti-adblock-killer.user.js +++ b/anti-adblock-killer.user.js @@ -5016,7 +5016,7 @@ }, prevention_com : { host : ['prevention.com'], - onIdle : function () { + onAfterScript : function () { for (let item of document.body.getElementsByClassName("block")) { item.style.visibility = "hidden"; }