如何在 Greasemonkey 脚本中以特定时间间隔加载 URL?
How to to load a URL at specific time intervals in a Greasemonkey script?
如何每 15 分钟在 Greasemonkey 中加载指定的 URL?问题是一个页面将我重定向到另一个 URL。我想每 15 分钟自动 return 到我指定的 URL。
我找到了答案,只需在 greasemonkey 中使用以下脚本,
window.setTimeout(main,10000);
function main()
{
window.location.replace("http://google.com");
}
如何每 15 分钟在 Greasemonkey 中加载指定的 URL?问题是一个页面将我重定向到另一个 URL。我想每 15 分钟自动 return 到我指定的 URL。
我找到了答案,只需在 greasemonkey 中使用以下脚本,
window.setTimeout(main,10000);
function main()
{
window.location.replace("http://google.com");
}