Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
getLinesWithFilters(...)
generateDiff(...)
mergeDiffs(...)
updateFromDiff
method onFiltersEngine
#172getFilters
method onFiltersEngine
#172StaticDataView.getBytes
#172config.debug
as well #172optimized method. Off by default, it can be enabled by using the
enableCompression
flag inConfig
. This allows a reduction in size ofabout 20% for
FiltersEngine
, at the cost of slightly slower updates. #122FiltersEngine.serialize now automatically includes a crc32 checksum and
FiltersEngine.deserialize will automatically check integrity of the given
serialized engine. Any mismatch will raise an exception like when the
version of the adblocker does not match between the serialized engine and
the code using to load it.
getCosmeticsFilter
API changed to allow finer-grain subsettingof cosmetic filters returned: hostname-specific, DOM-specific, generic, etc.
This allows to inject x70 less custom styles in frames for the same
blocking, which results in a massive memory decrease as well as less time
spent in repaint. #163
NetworkFilter.isCptAllowed
now accept request type as a string. #163$frame
option in network filters. #163$document
and$doc
options in network filters. #163Request.fromRawDetails(...)
Request.fromWebRequestDetails(...)
Request.fromPuppeteerDetails(...)
Request.fromElectronDetails(...)
jsdom
#163