Upload files to "/"

This commit is contained in:
Amm0ni4 2024-01-19 13:51:42 +00:00
parent 2919ca08f5
commit 9c56ab15d7

View file

@ -39,6 +39,7 @@ def modify_script_extra(file_path):
#Change source URL
content = content.replace("https://update.greasyfork.org/scripts/431691/Bypass%20All%20Shortlinks.user.js",
"https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/raw/branch/main/Bypass_All_Shortlinks.user.js")
content = content.replace("https://update.greasyfork.org/scripts/431691/Bypass%20All%20Shortlinks.meta.js",
"https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/raw/branch/main/Bypass_All_Shortlinks.user.js")
@ -60,9 +61,12 @@ def modify_script_extra(file_path):
print(f"An error occurred: {e}")
# Example usage
input_script_path = 'untouched_Bypass_All_Shortlinks.user.js'
includes_file_path = 'includes.txt'
output_script_path = 'Bypass_All_Shortlinks.user.js'
modify_script(input_script_path, includes_file_path, output_script_path)
modify_script_extra(output_script_path)
def main():
input_script_path = 'untouched_Bypass_All_Shortlinks.user.js'
includes_file_path = 'includes.txt'
output_script_path = 'Bypass_All_Shortlinks.user.js'
modify_script(input_script_path, includes_file_path, output_script_path)
modify_script_extra(output_script_path)
if __name__ == "__main__":
main()