[BUG] Domains and Subdomains Behave Differently on Site List
See original GitHub issueAfter further reading, this appears to be a bug, and not a Broken Website. I’ve updated the issue to reflect that.
Dark Reader Version: 4.9.16
Bug Description
- In the case of toggling Dark Reader on a subdomain, the entry into the list is specific, i.e., only effecting
docs.gitlab.com
, and notgitlab.com
or any other subdomains. - In the case of toggling Dark Reader on a domain, the entry into the list is generic, i.e., it effects
gitlab.com
, as well asdocs.gitlab.com
and any other subdomain.
This behavior is inconsistent and seems more like a bug.
Potential Bugfix: Even adding a future that would allow you to manually input //gitlab.com
to limit it to the domain (i.e., excluding sub-domains) would be a great way to compromise on this bug! 😄
A broader discussion on this started in this comment below.
ORIGINAL POST
Website https://docs.gitlab.com/ee/ci/quick_start/
How to Reproduce Steps to reproduce the behavior: An example of this is
- Go to Gitlab Docs website
- Attempt to activate Dark Reader
Expected behavior Dark Reader activates and Dark Reader generates a dark theme
Actual behavior docs.gitlab.com remains disabled
Screenshots
System info:
- OS: All OS’s (screenshot is from Arch; tried on macOS and Windows as well)
- Browser: Attempted with both Chrome and Firefox
Issue Analytics
- State:
- Created 3 years ago
- Reactions:8
- Comments:19 (7 by maintainers)
Top Results From Across the Web
383910 - [Password Manager][META] Cannot save individual ...
I've over 30 subdomains under my company's domain; different web sites, portals, web apps, because of this "feature" I have to enter my...
Read more >Subdomain Takeover: Second Order Bugs - Patrik Hudak
Second order bugs happen when a website uses a "takeoverable domain" in the wrong ... What happens when the domain is vulnerable to...
Read more >Login subdomain suggestions can be overwhelming in some ...
We de-duplicate the list of logins so if you are using the same username and password combinations on multiple subdomains of your company...
Read more >Sub domain control · Issue #147 · darkreader ... - GitHub
Then we do the opposite of the parent domain(add the subdomain to a exclude list?), or we remove the parent domain from the...
Read more >Routing traffic for subdomains - Amazon Route 53
If you have multiple subdomains that are managed by different groups, ... zone for the domain and the hosted zone for the subdomain,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So here’s a prominent example of where I found this bug/feature to be the most frustrating:
If for whatever reason you disable
stackexchange.com
, then every one of the ~166 subdomains (e.g.english.stackexchange.com
,math.stackexchange.com
,unix.stackexchange.com
) will also be disabled.But not only disabled, also impossible to enable again the intuitive way of clicking the button:
Hi @HatScripts and @BoltonBailey!
I almost forget to make a comment on this issue, but after @HatScripts comment I was turned and made a change to the existing PR(#2517) which if everything goes as plan should replace the current matching logic. The change was purely targeted to fix the subdomain problem matching more info at https://github.com/darkreader/darkreader/issues/373#issuecomment-720103647 and https://github.com/darkreader/darkreader/pull/2517#issuecomment-720103367
Regards, Gusted