File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11// ==UserScript==
22// @name 3DM论坛增强
3- // @version 1.0.4
3+ // @version 1.0.5
44// @author X.I.U
5- // @description 自动回复、自动无缝翻页、清理置顶帖子
5+ // @description 自动回复、自动无缝翻页、清理置顶帖子
66// @match *://bbs.3dmgame.com/*
77// @icon https://bbs.3dmgame.com/favicon.ico
88// @grant GM_xmlhttpRequest
6464
6565 // 随机回复帖子的内容
6666 var replyList = [
67- "感谢楼主分享!" ,
68- "感谢分享,给你点赞!" ,
69- "感谢分享,论坛因你更精彩!" ,
70- "看看隐藏内容是什么!" ,
71- "下载看看好不好用!" ,
72- "好人一生平安!"
67+ "感谢楼主分享的内容!" ,
68+ "感谢分享!给你点赞!" ,
69+ "感谢分享!论坛因你更精彩!" ,
70+ "看看隐藏内容是什么!谢谢!" ,
71+ "先下载看看好不好用!" ,
72+ "楼主一生平安!好人一生平安!" ,
73+ "你说的观点我也很支持!" ,
74+ "楼主太棒了!我先下为敬!" ,
75+ "给楼主点赞,希望继续分享!" ,
76+ "感谢论坛,感谢LZ热心分享!" ,
77+ "感谢楼主分享优质内容,希望继续努力!" ,
78+ "下载试用一下,如果用着不错就给楼主顶贴!" ,
79+ "这么好的东西!感谢楼主分享!感谢论坛!" ,
80+ "希望楼主继续分享更多好用的东西!谢谢!" ,
81+ "看到楼主这么努力分享,我只能顶个贴感谢一下了!" ,
82+ "好东西,拿走了,临走顶个贴感谢一下楼主!" ,
83+ "这就非常给力了!感谢分享!" ,
84+ "厉害了!先收藏,再回复!谢谢!"
7385 ] ;
7486
7587 // 检查是否登陆
195207 function writeReply ( ) {
196208 var textarea = document . getElementById ( "fastpostmessage" ) ;
197209 if ( textarea ) {
198- textarea . value = textarea . value + replyList [ Math . floor ( ( Math . random ( ) * replyList . length ) ) ] ;
210+ textarea . value = textarea . value + replyList [ Math . floor ( ( Math . random ( ) * replyList . length ) ) ] + replyList [ Math . floor ( ( Math . random ( ) * replyList . length ) ) ] ;
199211 var fastpostsubmit = document . getElementById ( "fastpostsubmit" ) ;
200212 if ( fastpostsubmit ) {
201213 fastpostsubmit . click ( ) ;
Original file line number Diff line number Diff line change 190190 writeReply ( ) ;
191191 // 如果使用了我的智友帮美化脚本,则定位至底部,反之定位至顶部
192192 if ( document . getElementById ( "fastpostmessage" ) . offsetParent == null ) {
193- console . log ( '111111' )
194193 setTimeout ( `window.scrollTo(0,99999999)` , 1000 ) ;
195194 } else {
196- console . log ( '222222' )
197195 setTimeout ( `window.scrollTo(0,0)` , 1000 ) ;
198196 }
199197 }
207205 if ( textarea ) {
208206 // 随机写入回复内容
209207 textarea . value = textarea . value + replyList [ Math . floor ( ( Math . random ( ) * replyList . length ) ) ] + replyList [ Math . floor ( ( Math . random ( ) * replyList . length ) ) ] ;
210- console . log ( `${ textarea . value } ` )
208+ // console.log(`${textarea.value}`)
211209 var fastpostsubmit = document . getElementById ( "fastpostsubmit" ) ;
212210 if ( fastpostsubmit ) {
213211 setTimeout ( `fastpostsubmit.click()` , 200 ) ;
You can’t perform that action at this time.
0 commit comments