3 ms·
Looks basically like an ad block filter rule list parser (there are others in C++ including one I wrote [0] and one Brave people wrote [1]). Of course, looking
by kodablah 9y ago
Looks basically like an ad block filter rule list parser (there are others in C++ including one I wrote [0] and one Brave people wrote [1]).
Of course, looking at the code, I am not seeing where cosmetic filters are supported. Also, you should include the code from https://cs.chromium.org/chromium/src/extensions/common/api/declarative_net_request/ https://cs.chromium.org/chromium/src/extensions/common/api/d... in this I think. Also, there's the safe browsing code at https://cs.chromium.org/chromium/src/components/safe_browsing/ https://cs.chromium.org/chromium/src/components/safe_browsin... of which the author references db/util.h.
0 - https://github.com/cretz/doogie/blob/master/src/blocker_rules.cc https://github.com/cretz/doogie/blob/master/src/blocker_rule...
1 - https://github.com/brave/ad-block https://github.com/brave/ad-block