在加载任何HTML之前,请寻找一种控制选项卡的方法

发布于 2025-01-23 22:27:24 字数 281 浏览 2 评论 0原文

我正在寻找一种在任何HTML加载之前控制Chrome或任何其他浏览器的选项卡的方法。

我写了一个快速的TampermonKey脚本,该脚本反复重新加载页面检查约会,但问题是该网站真可怕,以至于现在只有3个时间才一次加载。因此,如果没有加载,我需要一种方法来检测它并在≈60秒后重新加载页面。由于它根本没有返回任何内容,因此Tampermonkey无法访问任何东西,也无法触发location.reload()

上下文:尝试在柏林获得签证约会。从字面上看,无休止地刷新页面是唯一做到这一点的方法...

I'm looking for a way to control a tab in Chrome or any other browser before any HTML has loaded.

I wrote a quick TamperMonkey script that repeatedly reloads a page checking for appointments, but the problem is that the site is sooooo horrible that it's only loading at all one time in 3 right now. So I need a way to detect that and reload the page after ≈60 sec if it hasn't loaded. Since it's not returning anything at all TamperMonkey has no access to anything and can't trigger location.reload()

Context: Trying to get a visa appointment in Berlin. Refreshing the page endlessly, for literally days on end, is the only way to do that... ????‍♂️

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文