You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
The key has expired.
Implement lazy loading and compact internal representation #87
[BREAKING] serialization module has been removed, instead, each class now
provides a serialize method as well as a static method deserialize.
[BREAKING] FiltersEngine now exposes different methods for update: update which expects a diff of filters, updateList and updateResources. This API should be a cleared and allows using the
adblocker without managing filters lists.
[BREAKING] ReverseIndex' API dropped the use of a callback to specify
filters and instead expects a list of filters.
[BREAKING] parsing and matching filters can now be done using methods of
the filters classes directly instead of free functions. For example
NetworkFilter has a parse and match method (with the same expected
arguments).
ReverseIndex is now implemented using a very compact
representation (stored in a typed array).
toString method of filters should now be more accurate.
Addition of numerous unit tests (coverage is now >90%)
[BREAKING] getCosmeticsFilters will now return CSS as a single string
(stylesheet) instead of a list of selectors. This simplifies the usage and
allows to directly inject this into the page using the method of your
choice: through content scripts or tabs.injectCSS API.