How can I block page autorefresh in Google Chrome?

安稳与你 提交于 2019-12-02 17:34:43

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 !

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!