使用浏览器控制台登录Discord



如何登录https://discord.com/login使用浏览器控制台。

我可以使用这些查询在输入字段上设置值。

document.querySelector('input[name="email"]').value = 'test@gmail.com';
document.querySelector('input[name="password"]').value = 'test123';

点击登录按钮并查询

document.querySelectorAll("button[type='submit']")[0].click();

但它只是清除了这两个字段,并表示密码是必填字段。

感谢您的帮助。

谢谢安德斯

let element = document.getElementsByName('email');
element[0].focus();
document.execCommand('insertText', false, '##YOUR_EMAIL##');
element = document.getElementsByName('password');
element[0].focus();
document.execCommand('insertText', false, '##YOUR_PASSWORD##');
document.getElementsByClassName('marginBottom8-emkd0_ button-1cRKG6 button-f2h6uQ lookFilled-yCfaCM colorBrand-I6CyqQ sizeLarge-3mScP9 fullWidth-fJIsjq grow-2sR_-F')[0].click();

最新更新