XUNLU
寻路人生

chrome等浏览器控制台自动刷新网页脚本

把这段js粘到chrome等浏览器控制台,回车,设置刷新时间即可;

timeout=prompt("Set timeout (Second):");
count=0
current=location.href;
if(timeout>0)
setTimeout('reload()',1000*timeout);
else
location.replace(current);
function reload(){
setTimeout('reload()',1000*timeout);
count++;
console.log('每('+timeout+')秒自动刷新,刷新次数:'+count);
fr4me='<frameset cols=\'*\'>\n<frame src=\''+current+'\'/>';
fr4me+='</frameset>';
with(document){write(fr4me);void(close())};
}
赞(0)
未经允许不得转载:寻路网 » chrome等浏览器控制台自动刷新网页脚本

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

Warning: error_log(/www/wwwroot/www.xunlu.net/wp-content/plugins/spider-analyser/#log/log-0802.txt): failed to open stream: No such file or directory in /www/wwwroot/www.xunlu.net/wp-content/plugins/spider-analyser/spider.class.php on line 2900