stylus icon indicating copy to clipboard operation
stylus copied to clipboard

Inconsistent results of built-in search for Styles

Open Desynci opened this issue 5 months ago • 6 comments

Good day,

The search of styles for the current page doesn't work consistently and, for unknown reasons, sometimes switches between two "modes":

a) Search for styles in which the category is only a 2nd-level domain (example: twitch, reddit, youtube). b) Search for styles in which the category is only a 2nd+1st-levels domain (example: twitch.tv, reddit.com, youtube.com).

[!NOTE] You'll need it below: I have a Twitch Better style with the twitch.tv category, which was released in 2025. How it looks:

Case a)

In this case, we can only find styles with the `twitch` category.

Trying to find my style — can't find it, latest year available is 2022, not 2025.

Image

Case b)

In this case, we can only find styles with the `twitch.tv` category.

Trying to find my style — found, latest year available is 2025, and the style is below.

Image

System information:

  • OS: Win11
  • Browser: Chromium-based, Chrome/136.0.0.0 in user-agent.
  • Stylus: 2.3.15

Desynci avatar Aug 09 '25 09:08 Desynci

Your userstyles.world category should be just the name, not a domain, i.e. twitch.

tophf avatar Aug 09 '25 16:08 tophf

Your userstyles.world category should be just the name, not a domain, i.e. twitch.

It's okay, but it doesn't really cancels the problem I mentioned. Search can still sometimes display only styles with the twitch.tv domain, and not a single one with just twitch, for example. And vice versa.

Also userstyles.world/docs states the following:

Make sure that you have set the category for your style properly. It may be the name of the service or a domain name. If the domain TLD is either .org or .com, you must omit it. If the TLD is something else, you must indicate both the domain and the TLD.

The subdomain part must also be included.

Short description in the settings of style too:

Category - Domain name of website that your userstyle applies to.

Desynci avatar Aug 09 '25 20:08 Desynci

The indexes may take several seconds to download and during that time the results are displayed only from one repository.

tophf avatar Aug 09 '25 20:08 tophf

If the TLD is something else, you must indicate both the domain and the TLD

This rule is only reasonable when tld is not noise, but for most sites it is.

tophf avatar Aug 09 '25 20:08 tophf

The indexes may take several seconds to download and during that time the results are displayed only from one repository.

I understand what you are talking about, but I don't think that's the case. This issue is persistent and doesn't resolve after minutes of waiting, refreshing the page, or even restarting the browser.

It's just like one time there's one set of the styles, the other time - second set, and they are mutually exclusive.

Desynci avatar Aug 09 '25 21:08 Desynci

Well I guess that's because the category is a single name historically. Only when the tld is meaningful was it used like in last.fm where FM stands for a radio frequency range. I'll try to account for the change, but generally you should stick to one name only when it is the meaningful part and disregard the tld.

tophf avatar Aug 10 '25 08:08 tophf