-
Notifications
You must be signed in to change notification settings - Fork 15
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
adblock2privoxy erros out on several recods #6
Comments
It's possible, but requires digging into the specific errors and isolating whether the issue is with these specific rules, or the adblock2privoxy rule parser. |
Great. I would very much appreciate looking into it as it would make privoxy even more on par with adblock |
I am not a programmer, but I took quick look at the issue and patterns seems fine if one uses adblock only without privoxy. Looking at the code a bit I also found that word "div" does not exists in the code anywhere, therefore is is logical adblock2privoxy errors out on them. Looking at the basic pattern I found number of cases where that html code is used
Among them there is for example
but it seems it has nothing to do the one using |
I don’t see anything wrong with the basic syntax of those selectors. Also I didn’t write the parser, and don’t know its limitations, e.g. tree depth and the like. The first clue might be reference to the rules with stuff like |
Hence no errors are there, but records such as those from wp.pl and gadzetomania.pl defined in the link from the first post do give errors than means Going back to fancystream at least last 2 rules are legitimate block records which web page code still shows. Adding parser for such cases would be welcomed addition
About the cycles. Please take your time. If it gets done by the end of summer I'll be happy :) |
Allow me to correct myself. All those fancystreems.com rules do get created! |
Reading from https://adblockplus.org/filters#elemhide-emulation turns out So what
but none of them seems to work. Any ideas? |
Checking the website's code with Inspector in Firefox it seems that code in web page is not all to complicated as simply looks as |
Bad news. According to filter writers css file is not enough for all those Good news. Some code may be borrowed from Adblockplus source to create .js script to hide those elements. |
I do not see a path to incorporate these abp-specific element hiding rules. |
Using https://easylist-downloads.adblockplus.org/easylistpolish.txt among others there is quite a few records on which adblock2privoxy errors out. Would it be possible to fix them?
The text was updated successfully, but these errors were encountered: