From 1311baa352ab7d9385ac8eb513f6ffe6c9813c06 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Sun, 21 Feb 2021 10:57:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E6=BB=9A=E5=8A=A8?= =?UTF-8?q?=E5=88=B0=E9=9A=90=E8=97=8F=E5=86=85=E5=AE=B9=E5=A4=84=E7=9A=84?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=EF=BC=88=E4=B8=8D=E4=BD=BF=E7=94=A8=E6=88=91?= =?UTF-8?q?=E7=9A=84=E7=BE=8E=E5=8C=96=E8=84=9A=E6=9C=AC=E4=B9=9F=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E4=BA=86=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zhiyoo-Enhanced.user.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Zhiyoo-Enhanced.user.js b/Zhiyoo-Enhanced.user.js index 8b47a42..5f99b5f 100644 --- a/Zhiyoo-Enhanced.user.js +++ b/Zhiyoo-Enhanced.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 智友邦论坛增强 -// @version 1.1.4 +// @version 1.1.5 // @author X.I.U // @description 自动签到、自动回复、自动无缝翻页、清理置顶帖子、简化附件兑换/下载、清理帖子标题〖XXX〗【XXX】文字 // @icon http://bbs.zhiyoo.net/favicon.ico @@ -240,12 +240,12 @@ // 如果已显示隐藏内容,则定位到隐藏内容区域 // 如果没有发现已显示隐藏内容,就不定位了 if (document.getElementsByClassName("showhide").length > 0){ - // 如果使用了我的智友帮美化脚本,则定位至底部,反之定位至顶部 - if (document.getElementById("fastpostmessage").offsetParent == null){ - setTimeout(`window.scrollTo(0,99999999)`, 1000); - } + // 如果使用了我的智友帮美化脚本,则定位至底部 + /*if (document.getElementById("fastpostmessage").offsetParent == null){ + //setTimeout(`window.scrollTo(0,99999999)`, 1000); + }*/ + setTimeout(`window.scrollTo(0,document.querySelector('.showhide').offsetTop)`, 500); //setTimeout(`location.hash='#footer'`, 1000); - //console.log(`${$(".showhide").scrollTop()}`); } } }