以下为网页自动刷新的工具
使用方式:Chrome内核浏览器F12开发者模式,点击控制台,在控制台里粘贴下列代码并回车,则会自动刷新,这里的timeout可以修改为需要的时间,建议30以上,单位秒,如有需要也可以选择打开浏览器无痕模式运行下列代码
var timeout = prompt("设置刷新时间间隔[S]");
var current = location.href ;
if(timeout > 0)
{
setTimeout('reload()',1000 * timeout);
}
else
{
location. replace(current);
}
function reload(){
setTimeout( 'reload()', 1000 * timeout);
var fr4me = ' <frameset cols=\'*\'>\n<frame src=\'' + current + '\' />';
fr4me += '</frameset>';
with(document){
write(fr4me);
void(close());
}
};