Dark Reader won't turn off for a specific website
See original GitHub issueI’m trying to turn Dark Reader off for a specific website. Namely, userstyles.org
. But it won’t turn off, no matter how many times I click the toggle
button. It seems to stay on no matter what. The only way to turn it off is to disable Dark Reader altogether.
Here is a screencast demonstrating my issue.
My situation is a bit strange because I typically use both Stylus and Dark Reader at the same time for this website. The reason being that the userstyle for this site sometimes doesn’t work, so I supplement it with Dark Reader. As you can see in the screencast, the userstyle will turn on and off just fine but Dark Reader will not go off on this specific website. I can only disable it globally. Furthermore, userstyles.org
is clearly being added and removed from the site list, but it still won’t turn off. This makes me worry that my Dark Reader settings may be corrupted somehow.
Again, I’ve only seen this happening for userstyles.org
and no other website. On every other website, I can toggle Dark Reader on a per-site basis just fine.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:8
- Comments:13 (3 by maintainers)
Top GitHub Comments
This issue seems to manifest whenever a substring of the current website’s domain has been previously added to the site list. In particular, it seems to commonly affect me whenever I find myself having performed (unknowingly, as it happens over many weeks or months) the following steps:
Add a subdomain (e.g.
sub.example.net
) to the site list.Add a higher-level domain of that subdomain (e.g.
example.net
) to the site list.Try to toggle the subdomain to remove it from the site list.
The last step always fails, producing no effect, without any explanation. A workaround is to find all corresponding higher-level domains (e.g.
example.net
) in the site list and remove them. Toggling their subdomains (e.g.sub.example.net
) will then resume working as expected.Just noticed a bug on macOS. Currently URL templates work bad. Most likely you used to open some local file in
Users
directory and toggled it in Dark Reader. Now there might be ausers
record in your list, that affectsuserstyles
domain name. This is planned to fix.