exclude google domains

This commit is contained in:
Amm0ni4 2024-01-18 02:29:16 +00:00
parent f84a4271b0
commit 6ce88e3b78
2 changed files with 4 additions and 2 deletions

View file

@ -17,8 +17,9 @@ def modify_script(input_script_path, includes_file_path, output_script_path):
# Remove lines starting with "// @include"
script_lines = [line for line in script_lines if not line.startswith('// @include')]
# Insert includes content after the last description line
script_lines.insert(last_description_line_index + 1, includes_content)
# Insert includes and excludes content after the last description line
excludes_content = "// @exclude-match *://*google.com/*\n"
script_lines.insert(last_description_line_index + 1, includes_content + excludes_content)
# Write the modified script to the output file
with open(output_script_path, 'w') as output_file:

View file

@ -739,6 +739,7 @@
// @include /^(https?:\/\/)(.+)?(gos2.urlcash.click)(\/.*)/
// @include /^(https?:\/\/)(.+)?(goes3.urlcash.click)(\/.*)/
// @include /^(https?:\/\/)(.+)?(r1.foxylinks.site)(\/.*)/
// @exclude-match *://*google.com/*
// @exclude /^(https?:\/\/)(.+)?((advertisingexcel|talkforfitness|rsadnetworkinfo|rsinsuranceinfo|rsfinanceinfo|rssoftwareinfo|rshostinginfo|rseducationinfo|gametechreviewer|vegan4k|phineypet|batmanfactor|techedifier|urlhives|linkhives|github|freeoseocheck|greenenez|aliyun|reddit|wiki-topia|edonmanor|vrtier|whatsapp|gearsadviser|edonmanor|tunebug|menrealitycalc|cloud.google).com|(thumb8|thumb9|crewbase|crewus|shinchu|shinbhu|ultraten|uniqueten|topcryptoz|allcryptoz|coinsvalue|cookinguide|cryptowidgets|webfreetools|carstopia|makeupguide|carsmania).net|(linksfly|shortsfly|urlsfly|wefly|blog24).me|(greasyfork|openuserjs|adarima|telegram).org|mcrypto.club|misterio.ro|insurancegold.in|coinscap.info)(\/.*)/
// @downloadURL https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/raw/branch/main/Bypass_All_Shortlinks.user.js
// @updateURL https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/raw/branch/main/Bypass_All_Shortlinks.user.js