openstyles / stylus

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

Custom included sites feature not working #1832

Closed dsteckbeck closed 1 month ago

dsteckbeck commented 1 month ago

Bug Report

Bug Description

I created a style and put in something simple like "div {display: none;}". When using Custom included sites, the style applies to all browser tabs/windows.

CSS Code

div { display: none; }

System Information

Additional Context

I used Stylus years ago, but only had a recent need to come back to it. After finding that I can't write generic CSS for sites and have the rules apply specifically, that makes this unusable, especially when sites do not use unique identifiers in their CSS.

tophf commented 1 month ago

The custom included styles are additive to the style's intrinsic sites, so this is the correct behavior. You can specify intrinsic targets in the editor: https://github.com/openstyles/stylus/wiki/Writing-styles#applying-styles-to-specific-sites