mirror of
https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated.git
synced 2024-12-29 00:13:02 +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("/")
|
#regex = regex.strip("/")
|
||||||
|
|
||||||
#Use @include for more complex regex
|
#Use @include for more complex regex
|
||||||
if '|' in regex:
|
if any(char in regex for char in ['|', '(', ')', '*']):
|
||||||
regex = '(' + regex + ')'
|
regex = '(' + regex + ')'
|
||||||
include_line = "// @include /^(https?:\/\/)(.+)?" + regex + "(\/.*)/"
|
include_line = "// @include /^(https?:\/\/)(.+)?" + regex + "(\/.*)/"
|
||||||
include_line = include_line.replace( "\.*)(\/.*)/", "\.*)/" ) #clean excess in the regex
|
include_line = include_line.replace( "\.*)(\/.*)/", "\.*)/" ) #clean excess in the regex
|
||||||
|
|
|
@ -116,7 +116,7 @@
|
||||||
// @match *://*.adbtc.top/*
|
// @match *://*.adbtc.top/*
|
||||||
// @match *://*.youtube.com/*
|
// @match *://*.youtube.com/*
|
||||||
// @match *://*.upload.ee/*
|
// @match *://*.upload.ee/*
|
||||||
// @match *://*.appdrive\.*/*
|
// @include /^(https?:\/\/)(.+)?(appdrive\.*)/
|
||||||
// @match *://*.dddrive.me/*
|
// @match *://*.dddrive.me/*
|
||||||
// @match *://*.uppit.com/*
|
// @match *://*.uppit.com/*
|
||||||
// @match *://*.krakenfiles.com/*
|
// @match *://*.krakenfiles.com/*
|
||||||
|
@ -136,8 +136,8 @@
|
||||||
// @match *://*.files.fm/*
|
// @match *://*.files.fm/*
|
||||||
// @match *://*.megaup.net/*
|
// @match *://*.megaup.net/*
|
||||||
// @match *://*.4fnet.org/*
|
// @match *://*.4fnet.org/*
|
||||||
// @match *://*.oxy\.*/*
|
// @include /^(https?:\/\/)(.+)?(oxy\.*)/
|
||||||
// @match *://*.gdtot\.*/*
|
// @include /^(https?:\/\/)(.+)?(gdtot\.*)/
|
||||||
// @match *://*.mp4upload.com/*
|
// @match *://*.mp4upload.com/*
|
||||||
// @match *://*.drop.download/*
|
// @match *://*.drop.download/*
|
||||||
// @match *://*.workupload.com/*
|
// @match *://*.workupload.com/*
|
||||||
|
@ -335,7 +335,7 @@
|
||||||
// @include /^(https?:\/\/)(.+)?(writedroid.eu.org|modmania.eu.org|writedroid.in|mytop5.club)(\/.*)/
|
// @include /^(https?:\/\/)(.+)?(writedroid.eu.org|modmania.eu.org|writedroid.in|mytop5.club)(\/.*)/
|
||||||
// @match *://*.computerpedia.in/*
|
// @match *://*.computerpedia.in/*
|
||||||
// @match *://*.finance.uploadsoon.com/*
|
// @match *://*.finance.uploadsoon.com/*
|
||||||
// @match *://*.adclicker\.*/*
|
// @include /^(https?:\/\/)(.+)?(adclicker\.*)/
|
||||||
// @include /^(https?:\/\/)(.+)?(offers4crypto.xyz|ewall.biz)(\/.*)/
|
// @include /^(https?:\/\/)(.+)?(offers4crypto.xyz|ewall.biz)(\/.*)/
|
||||||
// @match *://*.dl.lk21static.xyz/*
|
// @match *://*.dl.lk21static.xyz/*
|
||||||
// @match *://*.easylink.gamingwithtr.com/*
|
// @match *://*.easylink.gamingwithtr.com/*
|
||||||
|
|
Loading…
Reference in a new issue