Recent period, to brush a course online visits. , Pull this thing is, many people are handmade the number of visits to the brush 300
I tried many times, trying to figure out the number of visits Superstar learn through in the end is how calculated, wrote several scripts, without success
Then changed the idea, get a js on the console, automatic refresh. I find refreshing home course when sometimes visits plus (plus revel, should now be effective, so share
var timeout = prompt("设置刷新时间间隔[S]");
// 获取当前的URL
var current = location.href;
if(timeout > 0)
{
// 时间间隔大于0,timeout秒之后执行reload函数
setTimeout('reload()', 1000 * timeout);
}
else
{
// 时间间隔不大于0,仅刷新一次
location.replace(current);
}
function reload()
{
// timeout秒后执行reload函数,实现无限循环刷新
setTimeout('reload()', 1000 * timeout);
// 下面两行代码的格式化后的内容为:
// <frameset cols='*'>
// <frame src='当前地址栏的URL' />
// </frameset>
var fr4me = '<frameset cols=\'*\'>\n<frame src=\'' + current + '\' />';
fr4me += '</frameset>';
with(document)
{
// 引用document对象,调用write方法写入框架,打开新窗口
write(fr4me);
// 关闭上面的窗口
void(close());
};
}
Reproduced in: https: //www.cnblogs.com/QuixoteY/p/10984938.html