Skip to content

Commit e5b2bf1

Browse files
committed
新增 文章编辑页面与实际文章标题宽度、文字大小一致功能。
1 parent 280e88a commit e5b2bf1

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

Zhihu-Beautification.user.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// ==UserScript==
22
// @name 知乎美化
3-
// @version 1.0.3
3+
// @version 1.0.4
44
// @author X.I.U
5-
// @description 宽屏显示、屏蔽文章开头大图、文章编辑页面与实际文章宽度一致
5+
// @description 宽屏显示、隐藏文章开头大图、文章编辑页面与实际文章宽度一致
66
// @match *://www.zhihu.com/*
77
// @match *://zhuanlan.zhihu.com/p/*/edit
88
// @icon https://static.zhihu.com/static/favicon.ico
@@ -35,7 +35,7 @@
3535

3636
if (menu_postimg){menu_postimg_ = "√";}else{menu_postimg_ = "×";}
3737

38-
menu_postimg_ID = GM_registerMenuCommand(`[ ${menu_postimg_} ] 屏蔽文章开头大图`, function(){menu_switch(menu_postimg,'xiu2_menu_postimg','屏蔽文章开头大图')});
38+
menu_postimg_ID = GM_registerMenuCommand(`[ ${menu_postimg_} ] 隐藏文章开头大图`, function(){menu_switch(menu_postimg,'xiu2_menu_postimg','隐藏文章开头大图')});
3939
menu_feedBack_ID = GM_registerMenuCommand('反馈 & 建议', function () {window.GM_openInTab('https://github.com/XIU2/UserScript#xiu2userscript', {active: true,insert: true,setParent: true});});
4040
}
4141

@@ -70,7 +70,7 @@
7070
}
7171
`,
7272
style_2 = `
73-
/* 屏蔽在各列表中查看文章时开头显示的大图,不影响文章/专栏页面 */
73+
/* 隐藏在各列表中查看文章时开头显示的大图,不影响文章专栏页面 */
7474
.RichContent img.ArticleItem-image {
7575
display: none !important;
7676
}
@@ -80,6 +80,11 @@
8080
.PostEditor .RichText {
8181
min-width: 690px !important;
8282
}
83+
/* 及标题输入框内的文字大小 */
84+
.WriteIndex-titleInput .Input {
85+
min-width: 690px !important;
86+
font-size: 24px;
87+
}
8388
`
8489
var style_Add = document.createElement('style');
8590
if (menu_postimg) {

0 commit comments

Comments
 (0)