blob-override

blob-override

The blob-override snippet overrides specific parts of the Blob injected in web-pages. It overrides the blob constructor to intercept calls and change the blob content.

Parameters

Name

Description

Mandatory

Default

search

The string or regex pattern to match in the blob content.

Yes

n.a.

replacement

The string to replace the matched pattern with.

No

''

needle

An optional string or regex to check in the blob parts before applying the replacement.

No

''

Filter examples

Filter

Result

blob-override '/config = \\{[^}]*\\}/' 'config = {}' '/Sponsored/'

Overrides the config content matched via regex with an empty object, only if the blob also contains "Sponsored".

Debugging

Message

When

Definition

info - Wrapped Blob constructor in context

After wrapping

Blob prototype is intercepted.

success - Replaced: search → replacement FILTER: blob-override params

After match and replace

The filter successfully hit.