Add duit.cc bypass (fixes #391)
This commit is contained in:
parent
2ad15cd57e
commit
a4cc2b7c77
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user