I want to stop execution of window.location as in below when a page loads:
<script type="text/javascript">
alert('Bid closed ');
window.location = '/index.html';
</script>
I'm able to bypass alert
message by replacing alert
function during document_start
in the manifest.json. But unable to stop window.location from executing.
window
object is not writable, so you cannot change document
and window
objects
check this link for more info
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With