From d83aceaa622cd3cfe200ae2f1113eff1d67ca701 Mon Sep 17 00:00:00 2001 From: "Tim \"timmyRS\" Speckhals" Date: Tue, 31 Dec 2019 17:51:01 +0100 Subject: [PATCH] Add safelinkgratis.info bypass (closes #793) --- background.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/background.js b/background.js index 7768c58..a900c1f 100644 --- a/background.js +++ b/background.js @@ -498,6 +498,16 @@ brws.webRequest.onBeforeRequest.addListener(details=>{ "*://*.bdzone.xyz/cheat.php?link=*" ]},["blocking"]) +brws.webRequest.onBeforeRequest.addListener(details=>{ + if(enabled) + { + console.log(details) + return getRedirect(decodeURIComponent(atob(details.url.substr(details.url.indexOf("?link=")+6)))) + } +},{types:["main_frame"],urls:[ +"*://*.safelinkgratis.info/*?link=*" +]},["blocking"]) + brws.webRequest.onBeforeRequest.addListener(details=>{ if(enabled) {