diff --git a/background.js b/background.js index 4bc9cb4..b77c013 100644 --- a/background.js +++ b/background.js @@ -82,7 +82,8 @@ chrome.webRequest.onBeforeRequest.addListener(details=>{ return{redirectUrl:chrome.extension.getURL("/html/blocked.html")} },{urls:getIPLoggerPatterns()},["blocking"]) chrome.webRequest.onBeforeRequest.addListener(details=>{ - return{redirectUrl:decodeURIComponent(details.url.split("?link=")[1])} + if(details.method=="GET"&&details.type=="main_frame") + return{redirectUrl:decodeURIComponent(details.url.split("?link=")[1])} },{urls:["*://*.spaste.com/r/*?link=*"]},["blocking"]) function getIPLoggerPatterns() { diff --git a/content_script.js b/content_script.js index cbf0963..51a3222 100644 --- a/content_script.js +++ b/content_script.js @@ -117,37 +117,36 @@ if(document instanceof HTMLDocument) ODP(this,"ysmm",//Adf.ly { set:r=>{ - let I=X="" - for(let m=0;m