userstyles.world icon indicating copy to clipboard operation
userstyles.world copied to clipboard

Ideas for other userstyle types

Open astyled opened this issue 6 months ago • 0 comments

Currently USw is used for hosting userstyles injected into websites by Stylus extension. But there are other types of injectable user-created CSS modifications for existing software. We may want to add support for some.

  • Custom CSS for BetterDiscord/Vencord/Armcord/other *cord Discord client modifications

    Spec: They all seem to use file mask of *.theme.css and commented metadata with fields like @name, @description, @author, @version. There's no @namespace though. Some styles are implementing more fields with links to source code, donation options, links profiles, etc. But I could not find a spec with more than 4 fields documented. I have also seen @updateUrl in some styles. No idea how its used but it should probably be preserved or replaced in case of USw. The styles are also usually making use of @import url('https://').

    Some places where these styles are usually hosted:

    • https://betterdiscord.app/themes
    • https://vsthemes.org/skins/discord/

    Reasons against:

    • I feel like half of these custom clients are created to make bot farms. Also the lifespan of these clients is usually very short.
    • => the styles are relaying on a proprietary platform and on unstable (as existence stability) modifications prohibited by the platform.
    • Possible spam of styles that just import another style and change the background image.

    There's also discocss which just injects plain *.css files. I guess it should be compatible with the other format

  • Firefox userChrome

    Spec: Only works on Firefox with toolkit.legacyUserProfileCustomizations.stylesheets enabled. Filenames are userChrome.css and userContent.css, but it seems like *.css is good in case of user wanting to combine multiple themes via @import(). There's no metadata and no auto-update software.

    Some places where these styles are usually hosted:

    • https://firefoxcss-store.github.io/
    • https://vsthemes.org/skins/firefox/

    Reasons against:

    • Relies on Firefox legacy functionality, which may be removed soon.
    • Firefox is unpopular and in constant state of user base fall.
    • => if we add support for this type of styles, we may get increased code maintenance cost for a discontinued feature with very few users.

astyled avatar Feb 04 '24 11:02 astyled