通过按钮单击打开新选项卡后继续JavaScript
我很安静地对javaScript,需要您有关以下问题的帮助: 我已经写了一本JavaScript,每周件上午7点会自动订阅健身课。 我必须单击一个正在打开新标签的按钮,我必须填写我的个人数据。新标签的URL是可变的,所以我不能通过
window.open(URL,"_self")
有没有办法在新标签中继续脚本或在同一选项卡中打开网站?
谢谢!
I'm quiet new to JavaScript and need your help concerning the following problem:
I've written a JavaScript to subscribe automatically to a gym class every monday at 7 a.m..
I have to click a button that's opening a new tab where I have to fill my personal data. The URL of the new tab is variable so I cant do it via
window.open(URL,"_self")
Is there a way to continue the script in the new tab or open the website in the same tab?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于提到的异议,这对我来说听起来并不可行 - 至少以这种形式。如果您想在外部网站上运行脚本,那么只需使用浏览器解决方案,例如:
)删除您的注册。
如果您想在不做任何事情的情况下完全自动化此功能,那么您将无法避免使用Puppeteer的( https://github.com/puppeteer/puppeteer )每X天运行。
Because of the objections mentioned, that doesn't sound feasible to me - at least in this form. If you want to run a script on the external website, then simply use a browser solution such as:
There you can install your script and have it automatically fill out your registration.
If you want to automate this completely without doing anything on your part, then you will not be able to avoid an (external server-side) solution such as a NodeJS application with puppeteer (https://github.com/puppeteer/puppeteer) running every X days.