Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload to userstyles.world #1392

Open
1 task done
Tracked by #1357
PRO-2684 opened this issue Oct 21, 2024 · 6 comments
Open
1 task done
Tracked by #1357

Upload to userstyles.world #1392

PRO-2684 opened this issue Oct 21, 2024 · 6 comments
Labels
meta Repository-wide issues

Comments

@PRO-2684
Copy link
Contributor

Is there an existing issue outlining your problem?

  • I have searched the existing issues and they do not solve my problem.

Describe your issue.

Any plan to upload these userstyles to userstyles.world?

@PRO-2684 PRO-2684 added the meta Repository-wide issues label Oct 21, 2024
@uncenter
Copy link
Member

What's the benefit of adding them to there? Is there an API that we can use to automatically upload new userstyles to the site?

@sgoudham
Copy link
Contributor

sgoudham commented Oct 21, 2024

I created an account under the org: https://userstyles.world/user/catppuccin and unfortunately doesn't seem to be an API (or well, I can't find any settings that let me create an API key of any kind)

They do seem to have functionality to allow importing from URLs but I'm not sure on the semantics of that (i.e, can you upload once and all updates are automatically pulled in? or do you need re-import on a new version)

@PRO-2684
Copy link
Contributor Author

PRO-2684 commented Oct 21, 2024

What's the benefit of adding them to there? Is there an API that we can use to automatically upload new userstyles to the site?

  • Benefits
    • It's a popular site dedicated for userstyles.
    • It's easier for newbies to search and install userstyles on userstyles.org than on GitHub.
    • It might be slow or difficult to visit GitHub in certain countries, while userstyles.world could serve as a "mirror".
  • Automatically upload: POST to https://userstyles.world/add with credentials. Simply login, visit https://userstyles.world/add and inspect the form <form method="post" action="/add" enctype="multipart/form-data">.

@PRO-2684
Copy link
Contributor Author

PRO-2684 commented Oct 21, 2024

I created an account under the org: https://userstyles.world/user/catppuccin and unfortunately doesn't seem to be an API (or alteast, I can't find any settings that let me create an API key of any kind)

They do seem to have functionality to allow importing from URLs but I'm not sure on the semantics of that (i.e, can you upload once and all updates are automatically pulled in? or do you need re-import on a new version)

It doesn't have Webhooks like GreasyFork does, but if you import a userstyle, it will check for update "Every 4th minute of every 4 hours".

For authenticating, their Cryptographic usage page might help.

@PRO-2684
Copy link
Contributor Author

Also, existing userstyles' @updateURL should be removed, or userstyles installed from userstyles.org will be updated from GitHub. Stylus should handle updateURL by itself correctly.

@isabelroses
Copy link
Member

isabelroses commented Oct 21, 2024

I suppose I should chime in, we have had no official pushes to userstyles world, but some people in the past have uploaded some themes. Like how I uploaded catppuccin youtube in the past, see below.
image

Link to youtube catppuccin on userstyles.world: https://userstyles.world/style/8932/youtube-catppuccin

Also, existing userstyles' @updateURL should be removed, or userstyles installed from userstyles.org will be updated from GitHub. Stylus should handle updateURL by itself correctly.

This gets stripped automatic when you upload the files thankfully.

So we would only need to setup a mirror once per theme, so it would be a matter of ci on init PRs, and one massive one to get all ~100 themes up there now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta Repository-wide issues
Projects
None yet
Development

No branches or pull requests

4 participants