Skip to content

Block site ads and annoyances #360

@VoidMonk

Description

@VoidMonk

Hi, is there a plugin or another way in Hero to blocks ads (based on public lists of URLs) and cosmetic annoyances (e.g. cookie banners etc.) via automatic URL filtering and CSS injection, like done by Ghostery Adblocker[1] for Puppeteer?

I suppose Adblocker's standalone JS lib can be use to match a resource URL and somehow reject/abort requests before they're made, but I can't find a way or event in Hero (or a Tab) to hook into and reject/abort requests dynamically (i.e. without presetting with blockedResourceUrls or interceptedResources).

[1] https://github.com/ghostery/adblocker

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions