Provide content script API for hiding elements after the fact
In adblockpluschrome/composer.preload.js, we're relying on the following functions from include.preload.js, which has moved to the SDK:
Function | Use case | Required? |
---|---|---|
collapseElement | Collapse the specific element that the user selected after finishing the filter composer flow | yes, because element collapsing is only applied after blocking the respective request |
contentFiltering.apply | Apply new element hiding rules to page after finishing the filter composer flow | yes, because new element hiding filters are only applied on page load |
getURLFromElement | Extract URL from element selected in filter composer flow | no, can be duplicated in product's content script |