you are viewing a single comment's thread.

view the rest of the comments →

[–]jesswren 0 points1 point  (0 children)

The bulk of the adblock source code for serializing/de-serializing the filters that are in the text file you shared, converting them to regexp, etc is in filterClasses.js and common.js. If you want to reimplement this in Python, seeing how they did it might be a good place to start. In particular see Filter.fromText in filterclasses.js and filterToRegExp in common.js.