userstyles icon indicating copy to clipboard operation
userstyles copied to clipboard

Upload to userstyles.world

Open PRO-2684 opened this issue 1 year ago • 6 comments

Is there an existing issue outlining your problem?

  • [X] 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 avatar Oct 21 '24 01:10 PRO-2684

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?

uncenter avatar Oct 21 '24 01:10 uncenter

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)

sgoudham avatar Oct 21 '24 01:10 sgoudham

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 avatar Oct 21 '24 02:10 PRO-2684

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 avatar Oct 21 '24 02:10 PRO-2684

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.

PRO-2684 avatar Oct 21 '24 02:10 PRO-2684

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.

isabelroses avatar Oct 21 '24 08:10 isabelroses