打开一个帖子,F12,输入如下内容:
(function() {
// 定义一个函数,用于执行所需操作
function automateTask() {
// 获取文本框元素
const textBox = document.querySelector("#txtContent_reply");
if (textBox) {
// 填入 "水经验"
textBox.value = "水经验";
}
// 获取按钮元素
const button = document.querySelector("#frmReply > button");
if (button) {
// 点击按钮
button.click();
}
}
// 使用定时器,每秒执行一次 automateTask 函数
setInterval(automateTask, 1000);
})();
2024-7-3 15:27:38
10666
[]