File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 208208 // 存在隐藏内容,自动回复
209209 if ( document . getElementsByClassName ( "showhide" ) . length == 0 ) {
210210 writeReply ( ) ;
211- // 如果使用了我的智友帮美化脚本,则定位至底部,反之定位至顶部
212- if ( document . getElementById ( "fastpostmessage" ) . offsetParent == null ) {
213- setTimeout ( `window.scrollTo(0,99999999)` , 1000 ) ;
214- } else {
215- setTimeout ( `window.scrollTo(0,0)` , 1000 ) ;
216- }
211+ setTimeout ( `window.scrollTo(0,document.querySelector('.showhide').offsetTop)` , 1000 ) ;
217212 }
218213 }
219214 }
240235 // 如果已显示隐藏内容,则定位到隐藏内容区域
241236 // 如果没有发现已显示隐藏内容,就不定位了
242237 if ( document . getElementsByClassName ( "showhide" ) . length > 0 ) {
243- // 如果使用了我的智友帮美化脚本,则定位至底部
244- /*if (document.getElementById("fastpostmessage").offsetParent == null){
245- //setTimeout(`window.scrollTo(0,99999999)`, 1000);
246- }*/
247238 setTimeout ( `window.scrollTo(0,document.querySelector('.showhide').offsetTop)` , 500 ) ;
248- //setTimeout(`location.hash='#footer'`, 1000);
249239 }
250240 }
251241 }
You can’t perform that action at this time.
0 commit comments