New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better URL Matching #2517
Better URL Matching #2517
Conversation
Any news on getting this merged and released? I'm really looking forward to a fix to #660 |
This is a breaking change, changing a main component. A lot of system relies on this. |
Do you think it would be possible to publish on Chrome Web Store a beta version of Dark Reader that would include this PR and maybe others ? |
That will be a hell to manage. Also seems like conflicts in this PR time to update. |
Okay, well, I see this PR merged in my dreams. xD |
I hope that dream can be fillfulled this month. |
What do the latest commits pending review do? |
That wouldn't address other issues like the need to exclude subdomains from a "higher-level" allowlist, unless they also implemented the inverse solution. Even then, I don't think that would be flexible enough to allow for custom configurations per subdomain, only inclusion or exclusion from higher-level rules, although it would depend on the implementation I guess. Plus, it might have a scaling problem, like not allowing for customization of sub-sub-domains. To be fair, that's getting pretty in the weeds. |
Pinging @Gusted. Here is a Pull Request from you that has been sitting open for approximately 2 3/4 years. |
In the meantime, I created a Dark Reader dynamic blacklist userscript that, among other things, manages this use case, using the For example, it will disable filtering on |
@KaKi87 If you don't mind me asking, is it supposed to work automatically or does it need any input? Because I've been trying with alternativeto.net, and it doesn't detect the available-but-not-default dark theme. |
Yes.
Are you using Violentmonkey, like recommended on my userscript homepage ? EDIT regarding @Jackenmen's message below : the blacklist doesn't have to be empty, just not contain sites supported by the userscript. |
This is to confirm this bug with Dark Reader V4.9.62. Using Firefox V102.7 or Ungoogle Chromium V109.0. For users facing this challenge, I published this easy, quick, and temporary workaround. For developers interested to contribute to resolving this bug, you might be interested in this:
|
@Gusted Will the subdomains rule for the global dark list still be enforced once this PR is merged ? |
is there an update on this? |
Is there anything we can do to help this get merged ? If this PR is problematic to merge and is expected to stay open for a long time, I'm going to try to upload a fork of Dark Reader to https://addons.mozilla.org based on this branch (Don't worry, I'll change the name). That way, users can still get around the issue |
@iTrooz I'd appreciate a CRX build as well if you can. Thanks |
If |
Try |
Hey @alexanderby ! I'm sorry, but I don't think I understood your message. Could you reformulate please ? |
This week a support for Regular Expressions was added. When a pattern starts with |
I'm sorry, but I'm not interested in testing that feature if it doesn't help this PR get merged. I am mainly interested in working on the code in this PR in order to it to get merged. My motivation for this is that I'd like to control subdomain dark themes independently from the main DarkReader UI (I'm affected by #1896 (comment) which brought me here) |
So, is there any way in which I can currently help, to get this PR merged ? (Or maybe you would accept a smaller PR to specifically handle subdomains independently ? But I'm not sure why this would be better, since nobody complained that this PR doesn't work ?) |
This PR can't be merged unfortunately, but some features can now be reimplemented in several smaller PRs. Particularly the root domain issue (e.g. GitHub.com and docs.github.com) can be fixed in 1 line and seems like a low risk change that can be done quickly. The Site List separation into enabled/disabled has been done, and it is unclear if the negative patterns will be still necessary. Anyway it should be also in a separate PR. I'm sorry that it takes so long, unfortunately my life situation didn't let me look into the problem 3 years ago. |
This commit allows |
This works perfectly, thank you !
Don't worry, it's perfectly okay ! You are doing this in your free time, and at no point did I want to imply that the work you are putting into this was bad. Thank you and the maintainers in general for making such a good extension, and devoting time for it. It's really useful for me on a daily basis, and I'm thankful for Dark Reader to exist |
In which version is this/will this be published to the stores ? |
Thanks, I see this If no other issues are found, it can go live next week (hopefully Mozilla will review the previous release soon). I'm attaching a build if you want to try: |
Resolves #84
Resolves #147
Resolves #373
Resolves #660
Resolves #1689
Resolves #1614
Resolves #2055
Resolves #2103
Resolves #3359
Resolves #3729
Resolves #3802
Resolves #4263
Resolves #4375
Resolves #4675
Resolves #4731
Resolves #6417
Resolves #7206