Skip to content

Conversation

@luca0N
Copy link

@luca0N luca0N commented Oct 29, 2025

Add the option `-f' to the updater.sh script to allow users to specify a path in local disk to an up-to-date user.js file. If specified, this option overrides the default behavior of downloading the latest user.js file.

This option was created due to GitHub blocking file downloads for users that are not logged in1. This is the same issue #2009 is aiming to solve.

As the title suggests, this new option was added to updater.sh only, and was not added to updater.bat. Since this problem affects both *nix and Windows users, perhaps it'd be a good idea to have it there, too. I can spin up my Windows VM and add the option there, too, if the repository maintainers would like.

I should also mention that this does not change the current behavior when downloading the updated user.js file and exiting the script right after with option -r. This choice was deliberate, as I believe those cloning this repository would already have the latest file. The purpose of the changes imposed by this pull request are to assist those who have cloned the repository and would not like to connect to the Internet again. Likewise, this does not change the behavior when checking for updater.sh.

This issue could also be fixed by passing GitHub logged in cookies to curl, similar to the way yt-dlp does.

Footnotes

  1. https://github.com/orgs/community/discussions/159123

Add the option `-f' to the updater.sh script to allow users to specify
a path in local disk to an up-to-date user.js file.  If specified, this
option overrides the default behavior of downloading the latest user.js
file.

This option was created due to GitHub blocking file downloads[1].

[1]: https://github.com/orgs/community/discussions/159123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant