diff --git a/3_patch.py b/3_patch.py index fe1b645..7a7434c 100644 --- a/3_patch.py +++ b/3_patch.py @@ -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: diff --git a/Bypass_All_Shortlinks.user.js b/Bypass_All_Shortlinks.user.js index 3dd4449..979ddbd 100644 --- a/Bypass_All_Shortlinks.user.js +++ b/Bypass_All_Shortlinks.user.js @@ -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