mirror of
https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated.git
synced 2025-01-30 22:57:26 +05:00
remove google and recaptcha domains. they can be enabled manually
This commit is contained in:
parent
5b54701196
commit
fa223ed3db
3 changed files with 7 additions and 15 deletions
|
@ -41,14 +41,6 @@ def generate_include_lines(regex_list):
|
||||||
include_line = regex_to_include_line(regex)
|
include_line = regex_to_include_line(regex)
|
||||||
include_lines.append(include_line)
|
include_lines.append(include_line)
|
||||||
|
|
||||||
# Manual additions of lines
|
|
||||||
|
|
||||||
## -Adding this so that captchas can be auto-opened by this userscript
|
|
||||||
include_lines.append('// @match *://*/recaptcha/api2/*')
|
|
||||||
|
|
||||||
## -Adding this as a go-to URL for accessing the settings menu in this userscript
|
|
||||||
###include_lines.append('// @match https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated*')
|
|
||||||
|
|
||||||
return include_lines
|
return include_lines
|
||||||
|
|
||||||
def write_to_file(filename, lines):
|
def write_to_file(filename, lines):
|
||||||
|
@ -78,10 +70,14 @@ def main():
|
||||||
regex_strings = extract_regex_from_js(js_code)
|
regex_strings = extract_regex_from_js(js_code)
|
||||||
|
|
||||||
# remove short domains (errors)
|
# remove short domains (errors)
|
||||||
regex_strings = [s for s in regex_strings if "." in s and len(s) >= 5]
|
regex_strings = [s for s in regex_strings if "." in s and len(s) >= 5]
|
||||||
|
|
||||||
# remove Google domains
|
# remove domains with blocked words
|
||||||
regex_strings = [s for s in regex_strings if "google" not in s]
|
blocked_words_for_includes = [
|
||||||
|
"google",
|
||||||
|
"youtube" #youtube is for redirecting shorts, but I remove it to avoid people worrying
|
||||||
|
]
|
||||||
|
regex_strings = [s for s in regex_strings if not any(word in s for word in blocked_words_for_includes)]
|
||||||
|
|
||||||
compile_and_print(regex_strings)
|
compile_and_print(regex_strings)
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
|
|
|
@ -113,7 +113,6 @@
|
||||||
// @match *://*.linkbox.to/*
|
// @match *://*.linkbox.to/*
|
||||||
// @include /^(https?:\/\/)(.+)?((desbloquea|drivelinks).me|(acortame-esto|recorta-enlace|enlace-protegido|super-enlace).com|short-info.link)(\/.*)/
|
// @include /^(https?:\/\/)(.+)?((desbloquea|drivelinks).me|(acortame-esto|recorta-enlace|enlace-protegido|super-enlace).com|short-info.link)(\/.*)/
|
||||||
// @match *://*.adbtc.top/*
|
// @match *://*.adbtc.top/*
|
||||||
// @match *://*.youtube.com/*
|
|
||||||
// @match *://*.upload.ee/*
|
// @match *://*.upload.ee/*
|
||||||
// @include /^(https?:\/\/)(.+)?(appdrive\.*)/
|
// @include /^(https?:\/\/)(.+)?(appdrive\.*)/
|
||||||
// @match *://*.dddrive.me/*
|
// @match *://*.dddrive.me/*
|
||||||
|
@ -365,7 +364,6 @@
|
||||||
// @match *://*.autodime.com/*
|
// @match *://*.autodime.com/*
|
||||||
// @include /^(https?:\/\/)(.+)?(lootlinks.co|(loot-links|links-loot|loot-link).com|(lootdest|lootlink).org|lootdest.info|linksloot.net)(\/.*)/
|
// @include /^(https?:\/\/)(.+)?(lootlinks.co|(loot-links|links-loot|loot-link).com|(lootdest|lootlink).org|lootdest.info|linksloot.net)(\/.*)/
|
||||||
// @match *://*.amritadrino.com/*
|
// @match *://*.amritadrino.com/*
|
||||||
// @match *://*.youtube.com/*
|
|
||||||
// @include /^(https?:\/\/)(.+)?(hunterkiller.me|surflink.tech)(\/.*)/
|
// @include /^(https?:\/\/)(.+)?(hunterkiller.me|surflink.tech)(\/.*)/
|
||||||
// @match *://*.coinhub.wiki/*
|
// @match *://*.coinhub.wiki/*
|
||||||
// @include /^(https?:\/\/)(.+)?(lyricsbaazaar.com|ezeviral.com)(\/.*)/
|
// @include /^(https?:\/\/)(.+)?(lyricsbaazaar.com|ezeviral.com)(\/.*)/
|
||||||
|
|
|
@ -30,7 +30,6 @@ ouo.io
|
||||||
linkbox.to
|
linkbox.to
|
||||||
(desbloquea|drivelinks).me|(acortame-esto|recorta-enlace|enlace-protegido|super-enlace).com|short-info.link
|
(desbloquea|drivelinks).me|(acortame-esto|recorta-enlace|enlace-protegido|super-enlace).com|short-info.link
|
||||||
adbtc.top
|
adbtc.top
|
||||||
youtube.com
|
|
||||||
upload.ee
|
upload.ee
|
||||||
appdrive\.*
|
appdrive\.*
|
||||||
dddrive.me
|
dddrive.me
|
||||||
|
@ -282,7 +281,6 @@ bastinews.xyz
|
||||||
autodime.com
|
autodime.com
|
||||||
lootlinks.co|(loot-links|links-loot|loot-link).com|(lootdest|lootlink).org|lootdest.info|linksloot.net
|
lootlinks.co|(loot-links|links-loot|loot-link).com|(lootdest|lootlink).org|lootdest.info|linksloot.net
|
||||||
amritadrino.com
|
amritadrino.com
|
||||||
youtube.com
|
|
||||||
hunterkiller.me|surflink.tech
|
hunterkiller.me|surflink.tech
|
||||||
coinhub.wiki
|
coinhub.wiki
|
||||||
lyricsbaazaar.com|ezeviral.com
|
lyricsbaazaar.com|ezeviral.com
|
||||||
|
|
Loading…
Reference in a new issue