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

Function autoReply

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

Source from the content-addressed store, hash-verified

200
201 // 自动回复
202 function autoReply(){
203 if (!menu_value('menu_autoReply')) return
204 if (loginStatus){
205 // 存在隐藏内容,自动回复
206 if (document.getElementsByClassName("showhide").length == 0){
207 writeReply();
208 // 如果使用了我的 [智友邦美化] 脚本,则定位至底部,反之定位至隐藏内容区域
209 if (document.getElementById("fastpostmessage").offsetParent == null){
210 setTimeout(function(){window.scrollTo(0,99999999)}, 1000);
211 }else{
212 setTimeout(function(){window.scrollTo(0,document.querySelector('.showhide').offsetTop)}, 1000);
213 }
214 }
215 }
216 }
217
218
219 // 写入自动回复内容

Callers 1

Calls 2

menu_valueFunction · 0.70
writeReplyFunction · 0.70

Tested by

no test coverage detected