ghostery / adblocker

Efficient embeddable adblocker library
https://www.ghostery.com
Mozilla Public License 2.0
765 stars 93 forks source link

Support `$replace` #3886

Open seia-soto opened 3 months ago

seia-soto commented 3 months ago

continues https://github.com/ghostery/adblocker/issues/3885

seia-soto commented 3 months ago

Noticed that the overall html filter capability should be improved to support this feature on Ghostery adblocker library. If possible, I want to extend the full html filtering capability. The implementation detail may change heavily based on the direction of this feature. For example, the current html filtering capability is limited at ^script:has-text.

One more thing to think is that our html filtering capability lives at the cosmetic filter. However, $replace modifier should live in the network filter.