|
1 | 1 | // ==UserScript== |
2 | 2 | // @name 智友邦论坛增强 |
3 | | -// @version 1.1.6 |
| 3 | +// @version 1.1.7 |
4 | 4 | // @author X.I.U |
5 | 5 | // @description 自动签到、自动回复、自动无缝翻页、清理置顶帖子、简化附件兑换/下载、清理帖子标题〖XXX〗【XXX】文字 |
6 | 6 | // @icon http://bbs.zhiyoo.net/favicon.ico |
|
210 | 210 | writeReply(); |
211 | 211 | // 如果使用了我的 [智友邦美化] 脚本,则定位至底部,反之定位至隐藏内容区域 |
212 | 212 | if (document.getElementById("fastpostmessage").offsetParent == null){ |
213 | | - setTimeout(`window.scrollTo(0,99999999)`, 500); |
| 213 | + setTimeout(function(){window.scrollTo(0,99999999)}, 1000); |
214 | 214 | }else{ |
215 | | - setTimeout(`window.scrollTo(0,document.querySelector('.showhide').offsetTop)`, 500); |
| 215 | + setTimeout(function(){window.scrollTo(0,document.querySelector('.showhide').offsetTop)}, 1000); |
216 | 216 | } |
217 | 217 | } |
218 | 218 | } |
|
226 | 226 | // 随机写入回复内容 |
227 | 227 | textarea.value = textarea.value + replyList[Math.floor((Math.random()*replyList.length))] + replyList[Math.floor((Math.random()*replyList.length))]; |
228 | 228 | //console.log(`${textarea.value}`) |
229 | | - var fastpostsubmit = document.getElementById("fastpostsubmit"); |
| 229 | + let fastpostsubmit = document.getElementById("fastpostsubmit"); |
230 | 230 | if (fastpostsubmit){ |
231 | | - setTimeout(`fastpostsubmit.click()`, 200); |
| 231 | + setTimeout(function(){fastpostsubmit.click()}, 200); |
232 | 232 | } |
233 | 233 | } |
234 | 234 | } |
|
242 | 242 | if (document.getElementsByClassName("showhide").length > 0){ |
243 | 243 | // 如果使用了我的 [智友邦美化] 脚本,则定位至底部,反之定位至隐藏内容区域 |
244 | 244 | if (document.getElementById("fastpostmessage").offsetParent == null){ |
245 | | - setTimeout(`window.scrollTo(0,99999999)`, 500); |
246 | | - console.log("111") |
| 245 | + setTimeout(function(){window.scrollTo(0,99999999)}, 1000); |
247 | 246 | }else{ |
248 | | - setTimeout(`window.scrollTo(0,document.querySelector('.showhide').offsetTop)`, 500); |
249 | | - console.log("222") |
| 247 | + setTimeout(function(){window.scrollTo(0,document.querySelector('.showhide').offsetTop)}, 1000); |
250 | 248 | } |
251 | 249 | } |
252 | 250 | } |
|
0 commit comments