Is there a way to stop a page from auto refreshing when I use Inspect Element

718 Views Asked by At

Every time I open inspect element on this page, it starts auto refreshing, it does this every time the inspect element tab is open, and it stops whenever the inspect element tab is closed

1

There are 1 best solutions below

0
On

Use onbeforeunload

// This code will display dialog with Reload or Cancel buttons
window.onbeforeunload = function(event) { return false};

Note: You can inject code at start of page using tools like Tampermonkey