Skip to content

Commit 3685cba

Browse files
committed
修复 文章编辑页没有生效的问题
1 parent 9482875 commit 3685cba

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

Zhihu-Beautification.user.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// ==UserScript==
22
// @name 知乎美化
3-
// @version 1.0.4
3+
// @version 1.0.5
44
// @author X.I.U
55
// @description 宽屏显示、隐藏文章开头大图、文章编辑页面与实际文章宽度一致
66
// @match *://www.zhihu.com/*
7-
// @match *://zhuanlan.zhihu.com/p/*/edit
7+
// @match *://zhuanlan.zhihu.com/p/*
88
// @icon https://static.zhihu.com/static/favicon.ico
99
// @grant GM_registerMenuCommand
1010
// @grant GM_unregisterMenuCommand
@@ -93,7 +93,9 @@
9393
style = style_1;
9494
}
9595
if(window.location.href.indexOf("zhuanlan") > -1){
96-
style += style_3;
96+
if(window.location.href.indexOf("/edit") > -1){
97+
style += style_3;
98+
}
9799
}
98100
style_Add.innerHTML = style;
99101
document.head.appendChild(style_Add);

0 commit comments

Comments
 (0)