mirror of
https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated.git
synced 2024-12-30 00:43:02 +05:00
Upload files to "/"
This commit is contained in:
parent
2919ca08f5
commit
9c56ab15d7
1 changed files with 12 additions and 8 deletions
|
@ -39,6 +39,7 @@ def modify_script_extra(file_path):
|
||||||
#Change source URL
|
#Change source URL
|
||||||
content = content.replace("https://update.greasyfork.org/scripts/431691/Bypass%20All%20Shortlinks.user.js",
|
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")
|
"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",
|
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")
|
"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}")
|
print(f"An error occurred: {e}")
|
||||||
|
|
||||||
|
|
||||||
# Example usage
|
def main():
|
||||||
input_script_path = 'untouched_Bypass_All_Shortlinks.user.js'
|
input_script_path = 'untouched_Bypass_All_Shortlinks.user.js'
|
||||||
includes_file_path = 'includes.txt'
|
includes_file_path = 'includes.txt'
|
||||||
output_script_path = 'Bypass_All_Shortlinks.user.js'
|
output_script_path = 'Bypass_All_Shortlinks.user.js'
|
||||||
modify_script(input_script_path, includes_file_path, output_script_path)
|
modify_script(input_script_path, includes_file_path, output_script_path)
|
||||||
modify_script_extra(output_script_path)
|
modify_script_extra(output_script_path)
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
|
|
Loading…
Reference in a new issue