利用chrome的console控制台自动刷新网页


timeout=prompt("Set timeout ");
current=location.href;
if(timeout>0)
setTimeout('reload()',1000*timeout);
else
location.replace(current);
function reload(){
setTimeout('reload()',1000*timeout);
fr4me='<frameset cols=\'*\'>\n<frame src=\''+current+'\'/>';
fr4me+='</frameset>';
with(document){write(fr4me);void(close())};
}



利用chrome的console控制台自动刷新网页,偶尔需要这个功能,不需要使用插件,太臃肿...


手机扫码阅读

Linux Find 命令精通指南(转)

314互联网造假大会,在315前夕顺利召开

评 论
avatar
218.14.211.*
thanks,谢谢,管用。
4 年前 回复