ankit / stylebot

Change the appearance of the web instantly
https://stylebot.dev/
MIT License
1.38k stars 205 forks source link

Rule Name and URL filter must be separate fields [Feature] #680

Open ivansimonov opened 2 years ago

ivansimonov commented 2 years ago

Suggest to add Name field for rules. URL filter can not show core and purpose of rule. Especially if it punycode URL: image

ankit commented 2 years ago

Thanks @ivansimonov - that makes sense.

Currently, the styles are keyed off the URL (which means only one style can exist per URL string) to make it simple to pick which style the editor modifies.

I think ideally I want to enable multiple styles per URL and allow switching between them in the editor. And add a name field to explain the purpose of a style.

pl0xy commented 1 year ago

shouldn;t be too hard to do, sould it, i admittedly haven't looked at how you;re storing the single css Change per URL, maybe just as string? so an object with nested Domains each with a name property, array of styles (index 0 would be the primary one) the array can contain the style type object, so Name of style, the style text, the URL it shoould be applied ot maybe. (thinking aloud here i guess a this point