mag*_*ixx 2 javascript forms greasemonkey submit form-submit
我正在尝试使用greasemonkey自动提交表单但是我不知道如何使用此按钮执行此操作.该按钮似乎具有以下属性
a class="blue-button" href="javascript:void(0)" onclick="Form.submit(this);"
Run Code Online (Sandbox Code Playgroud)
而我上面看到的唯一形式是
<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">
Run Code Online (Sandbox Code Playgroud)
页面在这里您可以使用"email9999@trash2009.com"和"a1a1a1a1"作为登录.
document.getElementsByTagName('form')[0].submit();
Run Code Online (Sandbox Code Playgroud)
请注意,这仅适用于页面上的第一个表单.如果需要,可以将数组索引增加到[1],或者在数组中循环查找正确的表单.