我正在尝试创建一些简单的 javascript 来自动填充网页。
我想修改以下内容以用于用户名“password_username”和密码“password_password”的特定 elementid</p>
var result = [];
// Get all links from the page need to change to specific for username
var elements = document.querySelectorAll("input");
for (let element of elements) {
element.value = "username";
}
// Get all links from the page need to change to specific for password
var elements = document.querySelectorAll("input");
for (let element of elements) {
element.value = "password";
}
// Call completion to finish
completion(result) `
我才刚刚开始学习代码并且有非常基本的javascript知识,感谢任何帮助!
干杯,
垫