vednoc / dark-switcher

Global settings companion-userstyle for my userstyles. Mirror of https://gitlab.com/vednoc/dark-switcher
https://gitlab.com/vedoc/dark-switcher
MIT License
6 stars 0 forks source link

Dark Switcher interfering with every website #1

Open dxnnie opened 3 years ago

dxnnie commented 3 years ago

Dark Switcher is interfering with every website, ending up altering/breaking other themes installed outside the themes provided by Vednoc.

vednoc commented 3 years ago

Apologies for late response, I'm having some issues with all of my notifications being read all the time.

Since more and more websites are using CSS custom properties, I could add @-moz-document domains used by my userstyles. It might not be the perfect solution, in which case you would have to manually exclude current domain/URL from Stylus' "Action menu" in the popup.

dxnnie commented 3 years ago

Apologies for late response, I'm having some issues with all of my notifications being read all the time.

Since more and more websites are using CSS custom properties, I could add @-moz-document domains used by my userstyles. It might not be the perfect solution, in which case you would have to manually exclude current domain/URL from Stylus' "Action menu" in the popup.

Thanks for the response and please, feel no need to apologize. As a workaround, whenever Dark Switcher interfere with some page, I merely exclude that domain. My first thought would be limiting the scope of action only to the websites you're developing, but I wouldn't know where to start.

Thanks for the good work!

vednoc commented 3 years ago

This userstyle would've been deprecated if I wasn't quite busy with UserStyles.world project. In order for that to happen, all userstyles need to be refactored to use v3 of my color generator. Most of them are stuck on v1 or v2, and v3 is only implemented in GitHub and GitLab. In v3, all color-schemes are built-in, but ATM syntax colors are not implemented yet, but I have them mostly figured out; upcoming Dark-GitHub release will be the first one to have them.

I wouldn't know where to start

It would consist of removing this line and adding all @-moz-document rules from my userstyles. Ideally, it would be a checkbox option for different userstyles, but that's one of the limitations of Stylus-lang's compiler and thus it's not possible to work around it. I've tried many things before and not a single one worked without causing bad side-effects (most of them made the userstyles apply globally).