문제

I would like to stop autorefresh page in Google Chrome, because it is a very annoying and memory consuming issue and I can't work with the developers tools. I'm trying to delete the refresh and setTimeout function from the script using Chrome's developers tools but I have no results. How can I block this annoying feature even for a while from the console?

도움이 되었습니까?

해결책

Since <meta http-equiv="Refresh" content="300; URL=?refresh_ce"> removal using DevTools is not sufficient (it doesn't stop page from refreshing) I've executed this code in the console: window.onbeforeunload = function(){ return 'Reload?';}. onbeforeunload event will fire before page reload and you'll be able to choose to abort reloading. From what I've tested the dialog shows up only once.

다른 팁

You can simply disable feature of page auto refresh, by following steps:

  1. Open chrome browser tab
  2. Type in your address bar chrome://flags
  3. Search #automatic-tab-discarding and make it 'Disabled' from 'Default'
  4. Restart your browser
  5. you are done !

enter image description here

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top