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
Sort-of-pseudo-automated the Legacy list #6808
Conversation
for nostif, nosiif etc see https://github.com/gorhill/uBlock/wiki/Resources-Library |
Okay, now I think I've got these things right in general. |
I truly appreciate the effort to resolve the issue with legacy filters, but I'd like to warn against using the proposed solution in its current state, since I see at least two significant gaps:
|
So, there a few bugs to weed out, but why would you try to convert anything from those hosts files? --
Oh, okiehsch specifically pointed out only to include rules from uBlock filters, and only the ones that doesn't work with uBO Legacy anymore: For the other built-in uBlock filter lists, additional Legacy versions are needed, like I suggested here: |
I am aware that there's a handful of remnant comment lines that somehow haven't been properly As for which file(s) to use, that feels like something that I'm not the right guy to debate. I tried most of all to have it fit well into the existing legacy list's infrastructure. |
I'd suggest instead to consider the option to convert new shorthands back to legacy syntax directly in uBlock when retrieving filter lists. Here is a simple hack doing so, based on rules taken from |
Since the converter was added today to firefox-legacy-1.16.4.14, this PR has become obsolete. Thanks again to @DandelionSprout for immediately offering help in resolving the legacy filter issue, as well as for the |
As per DandelionSprout/adfilt#7 (comment) and some comments prior and afterwards.
Notes
I have zero idea how to make
line = re.sub
select text from multiple lines, which means that I am not able to remove!#if env_chromium
- or!#if !env_firefox
-dependant entries.I also have zero idea how to make Python import local text files instead of URL sources, meaning that the script must be run twice to achieve the correct results. This is detailed in the README.md file.
The README.md file's instructions are based on downloading the file and running it locally with a file explorer and a terminal. If you guys were to figure out a way to do it in Git or Azure or whatever you guys use, you can write instructions for those methods beneath the existing instructions.