abort-current-inline-script
This snippet aborts the execution of an inline script when a property is either read or written.
Parameters
|
Name |
Description |
Mandatory |
|---|---|---|
|
api |
The API function or property name to anchor on. Can be a direct child of |
Yes |
|
search |
If specified, only scripts containing the given string are prevented from executing. If the string begins and ends with a slash ( |
No |
Filter examples
|
Filter |
Result |
|---|---|
|
|
The code that calls/writes the |
|
|
The code that calls/writes the |
|
|
The code that reads/writes the |
|
|
The code that calls/writes the |
|
|
Throws an exception only inside inline scripts whose text content matches the regex. |
Tradeoffs
-
The snippet is executed after all of a page's inline scripts. You should only attach properties read inside of a callback.
-
You can only attach this snippet to global properties, or properties of the
windowobject.