gpt4 book ai didi

javascript - 如何使用 Greasemonkey 自动提交表单?

转载 作者:行者123 更新时间:2023-11-29 16:28:57 24 4
gpt4 key购买 nike

我正在尝试使用greasemonkey 自动提交表单,但我不知道如何使用此按钮来完成此操作。该按钮似乎具有以下属性

a class="blue-button" href="javascript:void(0)" onclick="Form.submit(this);"

我在上面看到的唯一形式是

<form xmlns="http://www.w3.org/1999/xhtml" xmlns:s="http://www.blizzard.com/ns/store" action="/account/management/add-game.xml" autocomplete="off" method="post">

页面是here您可以使用“[email protected] ”和“a1a1a1a1”作为登录名。

最佳答案

document.getElementsByTagName('form')[0].submit();

请注意,这仅适用于页面上的第一个表单。如果需要,您可以将数组索引增加到 [1],或者循环遍历数组寻找正确的形式。

关于javascript - 如何使用 Greasemonkey 自动提交表单?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2615186/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com