openstyles / stylus

Stylus - Userstyles Manager
https://add0n.com/stylus.html
GNU General Public License v3.0
5.33k stars 300 forks source link

Feature suggestion: var for comments in userstyle config #1370

Open xrkaz opened 2 years ago

xrkaz commented 2 years ago

Not really good at explaining in English, but I hope these pics I took will suffice. Userstyle not mine, just an example: source

Fig 1. Author is using text property as alternative to comments, which produces unnecessary text field. 1a Fig 2. Optional: Clickable links support, if possible (might be risky though, leaving it to discretion) 2 Fig 3. Possible output. 3 Fig 4. Rich text support would be nice. 4

eight04 commented 2 years ago

The original purpose of @var is to provide an easy way to define configurable options (like userstyles.org) in usercss. It doesn't tell the userstyle manager how to display them. Options are not even ordered. (They are stored in an object map.)

I think we have to decide the goal first:

IMO:

tophf commented 2 years ago