Add duit.cc bypass (fixes #391)

This commit is contained in:
Tim "timmyRS" Speckhals 2019-08-29 05:09:23 +02:00
parent 2ad15cd57e
commit a4cc2b7c77

View File

@ -431,6 +431,17 @@ brws.webRequest.onBeforeRequest.addListener(details=>{
}
},{types:["main_frame"],urls:["*://*.maranhesduve.club/?*"]},["blocking"])
brws.webRequest.onBeforeRequest.addListener(details=>{
if(enabled)
{
let url=new URL(details.url)
if(url.searchParams.has("short"))
{
return getRedirect(url.searchParams.get("short"))
}
}
},{types:["main_frame"],urls:["*://*.duit.cc/*?*"]},["blocking"])
brws.webRequest.onBeforeRequest.addListener(details=>{
if(enabled)
{