blob-override
The blob-override
snippet overrides specific parts of the Blob injected in web-pages. We override the blob constructor in a way we can intercept calls and change the blob content.
Parameters
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
blob-override '/config = \\{[^}]*\\}/' 'config = {}' '/Sponsored/'
Will override the config
content matched via regex pattern with an empty object only if the blob contains also the string Sponsored.
Debugging
The following table contains messages you'll find useful during debugging:
info - Wrapped Blob constructor in context
After we have wrapped the window.Blob API.
From this moment on the blob prototype is intercepted by us.
success - Replaced: search
→ replacement
FILTER: blob-override params
After we have matched and replaced the blob content.
The filter successfully hit.
Last updated
Was this helpful?