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 智友邦论坛增强
3- // @version 1.1.4
3+ // @version 1.1.5
44// @author X.I.U
55// @description 自动签到、自动回复、自动无缝翻页、清理置顶帖子、简化附件兑换/下载、清理帖子标题〖XXX〗【XXX】文字
66// @icon http://bbs.zhiyoo.net/favicon.ico
240240 // 如果已显示隐藏内容,则定位到隐藏内容区域
241241 // 如果没有发现已显示隐藏内容,就不定位了
242242 if ( document . getElementsByClassName ( "showhide" ) . length > 0 ) {
243- // 如果使用了我的智友帮美化脚本,则定位至底部,反之定位至顶部
244- if ( document . getElementById ( "fastpostmessage" ) . offsetParent == null ) {
245- setTimeout ( `window.scrollTo(0,99999999)` , 1000 ) ;
246- }
243+ // 如果使用了我的智友帮美化脚本,则定位至底部
244+ /*if (document.getElementById("fastpostmessage").offsetParent == null){
245+ //setTimeout(`window.scrollTo(0,99999999)`, 1000);
246+ }*/
247+ setTimeout ( `window.scrollTo(0,document.querySelector('.showhide').offsetTop)` , 500 ) ;
247248 //setTimeout(`location.hash='#footer'`, 1000);
248- //console.log(`${$(".showhide").scrollTop()}`);
249249 }
250250 }
251251 }
You can’t perform that action at this time.
0 commit comments