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_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
|
||||
|
||||
def write_to_file(filename, lines):
|
||||
|
@ -80,8 +72,12 @@ def main():
|
|||
# remove short domains (errors)
|
||||
regex_strings = [s for s in regex_strings if "." in s and len(s) >= 5]
|
||||
|
||||
# remove Google domains
|
||||
regex_strings = [s for s in regex_strings if "google" not in s]
|
||||
# remove domains with blocked words
|
||||
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)
|
||||
except FileNotFoundError:
|
||||
|
|
|
@ -113,7 +113,6 @@
|
|||
// @match *://*.linkbox.to/*
|
||||
// @include /^(https?:\/\/)(.+)?((desbloquea|drivelinks).me|(acortame-esto|recorta-enlace|enlace-protegido|super-enlace).com|short-info.link)(\/.*)/
|
||||
// @match *://*.adbtc.top/*
|
||||
// @match *://*.youtube.com/*
|
||||
// @match *://*.upload.ee/*
|
||||
// @include /^(https?:\/\/)(.+)?(appdrive\.*)/
|
||||
// @match *://*.dddrive.me/*
|
||||
|
@ -365,7 +364,6 @@
|
|||
// @match *://*.autodime.com/*
|
||||
// @include /^(https?:\/\/)(.+)?(lootlinks.co|(loot-links|links-loot|loot-link).com|(lootdest|lootlink).org|lootdest.info|linksloot.net)(\/.*)/
|
||||
// @match *://*.amritadrino.com/*
|
||||
// @match *://*.youtube.com/*
|
||||
// @include /^(https?:\/\/)(.+)?(hunterkiller.me|surflink.tech)(\/.*)/
|
||||
// @match *://*.coinhub.wiki/*
|
||||
// @include /^(https?:\/\/)(.+)?(lyricsbaazaar.com|ezeviral.com)(\/.*)/
|
||||
|
|
|
@ -30,7 +30,6 @@ ouo.io
|
|||
linkbox.to
|
||||
(desbloquea|drivelinks).me|(acortame-esto|recorta-enlace|enlace-protegido|super-enlace).com|short-info.link
|
||||
adbtc.top
|
||||
youtube.com
|
||||
upload.ee
|
||||
appdrive\.*
|
||||
dddrive.me
|
||||
|
@ -282,7 +281,6 @@ bastinews.xyz
|
|||
autodime.com
|
||||
lootlinks.co|(loot-links|links-loot|loot-link).com|(lootdest|lootlink).org|lootdest.info|linksloot.net
|
||||
amritadrino.com
|
||||
youtube.com
|
||||
hunterkiller.me|surflink.tech
|
||||
coinhub.wiki
|
||||
lyricsbaazaar.com|ezeviral.com
|
||||
|
|
Loading…
Reference in a new issue