MCPcopy Create free account
hub / github.com/XIU2/UserScript / writeReply

Function writeReply

Zhiyoo-Enhanced.user.js:220–231  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

218
219 // 写入自动回复内容
220 function writeReply(){
221 let textarea = document.getElementById("fastpostmessage");
222 if (textarea){
223 // 随机写入回复内容
224 textarea.value = textarea.value + replyList[Math.floor((Math.random()*replyList.length))] + replyList[Math.floor((Math.random()*replyList.length))];
225 //console.log(`${textarea.value}`)
226 let fastpostsubmit = document.getElementById("fastpostsubmit");
227 if (fastpostsubmit){
228 setTimeout(function(){fastpostsubmit.click()}, 200);
229 }
230 }
231 }
232
233
234 // 定位到隐藏内容区域

Callers 1

autoReplyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected