question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dark Reader won't turn off for a specific website

See original GitHub issue

I’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:open
  • Created 5 years ago
  • Reactions:8
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
nisavidcommented, Jan 4, 2019

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:

  1. Add a subdomain (e.g. sub.example.net) to the site list.

  2. Add a higher-level domain of that subdomain (e.g. example.net) to the site list.

  3. 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.

3reactions
alexanderbycommented, Jan 3, 2019

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 a users record in your list, that affects userstyles domain name. This is planned to fix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

If you use Dark Reader 24/7, don't forget to disable it ... - Reddit
To disable Dark Reader on a website, you add that website to the ignore list (tab Site List). You can also add it...
Read more >
Help – Dark Reader
The extension doesn't work at all. If you have similar dark mode extensions installed, disable them, then reload tabs. Click Dark Reader icon,...
Read more >
3 Reasons to Move from Dark Reader to Turn Off the Lights ...
Open your Google Chrome web browser, and navigate to this chrome://extensions page. Search for the official Dark Reader and click on the button ......
Read more >
Dark Reader cannot turn off dark mode (iOS)
From Dark Reader's settings page, turn off dark mode for either the specific site or off completely. Refresh web page; Disable the extension...
Read more >
Dark Reader – Get this Extension for Firefox (en-US)
Download Dark Reader for Firefox. Dark mode for every website. ... enables night mode creating dark themes for websites on the fly.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found