mirror of
https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated.git
synced 2024-12-28 07:53:01 +05:00
use include instead of match for some other complex regex
This commit is contained in:
parent
788abf64fd
commit
ce3547224f
2 changed files with 5 additions and 5 deletions
|
@ -24,7 +24,7 @@ def regex_to_include_line(regex):
|
|||
#regex = regex.strip("/")
|
||||
|
||||
#Use @include for more complex regex
|
||||
if '|' in regex:
|
||||
if any(char in regex for char in ['|', '(', ')', '*']):
|
||||
regex = '(' + regex + ')'
|
||||
include_line = "// @include /^(https?:\/\/)(.+)?" + regex + "(\/.*)/"
|
||||
include_line = include_line.replace( "\.*)(\/.*)/", "\.*)/" ) #clean excess in the regex
|
||||
|
|
|
@ -116,7 +116,7 @@
|
|||
// @match *://*.adbtc.top/*
|
||||
// @match *://*.youtube.com/*
|
||||
// @match *://*.upload.ee/*
|
||||
// @match *://*.appdrive\.*/*
|
||||
// @include /^(https?:\/\/)(.+)?(appdrive\.*)/
|
||||
// @match *://*.dddrive.me/*
|
||||
// @match *://*.uppit.com/*
|
||||
// @match *://*.krakenfiles.com/*
|
||||
|
@ -136,8 +136,8 @@
|
|||
// @match *://*.files.fm/*
|
||||
// @match *://*.megaup.net/*
|
||||
// @match *://*.4fnet.org/*
|
||||
// @match *://*.oxy\.*/*
|
||||
// @match *://*.gdtot\.*/*
|
||||
// @include /^(https?:\/\/)(.+)?(oxy\.*)/
|
||||
// @include /^(https?:\/\/)(.+)?(gdtot\.*)/
|
||||
// @match *://*.mp4upload.com/*
|
||||
// @match *://*.drop.download/*
|
||||
// @match *://*.workupload.com/*
|
||||
|
@ -335,7 +335,7 @@
|
|||
// @include /^(https?:\/\/)(.+)?(writedroid.eu.org|modmania.eu.org|writedroid.in|mytop5.club)(\/.*)/
|
||||
// @match *://*.computerpedia.in/*
|
||||
// @match *://*.finance.uploadsoon.com/*
|
||||
// @match *://*.adclicker\.*/*
|
||||
// @include /^(https?:\/\/)(.+)?(adclicker\.*)/
|
||||
// @include /^(https?:\/\/)(.+)?(offers4crypto.xyz|ewall.biz)(\/.*)/
|
||||
// @match *://*.dl.lk21static.xyz/*
|
||||
// @match *://*.easylink.gamingwithtr.com/*
|
||||
|
|
Loading…
Reference in a new issue