abp-filter-parser
abp-filter-parser copied to clipboard
Example urlToCheck should return as blocked
Having implemented the example in the readme It seems as though the example URL given should be blocked as it is in my filter list as:
||static.tumblr.com/dhqhfum/WgAn39721/cfh_header_banner_v2.jpg yet it always returns false.
I managed to find that it only returns false when this filter exists in the same list, if i remove it, then it returns true as desired:
@@||rcards.net/wp-content/uploads/useful_banner_manager_banners/
For sanity, I ran the same list in my Chrome plugin and requested that image on slashdot.org domain and it was indeed blocked by ABP.
Do you have any idea? Or am I missing something critical here?
Likely something in what you are doing, I'd need to see full source.
Please use https://github.com/bbondy/abp-filter-parser-cpp though, the name is a bit deceptive because it's actually a node addon that you can use from js.