From 3685cbabd77ca54162c23f524469c762ff4e5a04 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Mon, 16 Nov 2020 13:32:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E6=96=87=E7=AB=A0?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E9=A1=B5=E6=B2=A1=E6=9C=89=E7=94=9F=E6=95=88?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zhihu-Beautification.user.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Zhihu-Beautification.user.js b/Zhihu-Beautification.user.js index 2b903a3..dedfa5f 100644 --- a/Zhihu-Beautification.user.js +++ b/Zhihu-Beautification.user.js @@ -1,10 +1,10 @@ // ==UserScript== // @name 知乎美化 -// @version 1.0.4 +// @version 1.0.5 // @author X.I.U // @description 宽屏显示、隐藏文章开头大图、文章编辑页面与实际文章宽度一致 // @match *://www.zhihu.com/* -// @match *://zhuanlan.zhihu.com/p/*/edit +// @match *://zhuanlan.zhihu.com/p/* // @icon https://static.zhihu.com/static/favicon.ico // @grant GM_registerMenuCommand // @grant GM_unregisterMenuCommand @@ -93,7 +93,9 @@ style = style_1; } if(window.location.href.indexOf("zhuanlan") > -1){ - style += style_3; + if(window.location.href.indexOf("/edit") > -1){ + style += style_3; + } } style_Add.innerHTML = style; document.head.appendChild(style_Add);