abort-on-property-readsnippet patches a property on the window object that aborts execution when the property is read. No error gets printed to the console.
You can use this snippet to abort the execution of inline scripts.
Only use this snippet for read properties. Place it just inside the script you want to abort, otherwise, an error will be thrown.
The following table lists examples that use the
The following table contains error messages you'll find useful during debugging:
Keep the following tradeoffs in mind when you use the
- The snippet is executed after all a page's inline scripts. As a result, you should only attach properties read inside of a callback, which can be executed after the script.
- You can only attach this snippet to global properties, or properties of the