From 3a2c352703375ca7b1c7bf6b681dd1b2f76ed2b2 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Fri, 23 Oct 2020 13:08:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=EF=BC=88=E5=92=8C=E5=85=B6=E4=BB=96=E7=9A=84?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=E6=A0=BC=E5=BC=8F=E7=BB=9F=E4=B8=80=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- Zhihu-Beautification.user.js | 29 +++++++++++++++++++++++++++++ ZhihuEnhanced-Widescreen.user.js | 30 ------------------------------ 3 files changed, 30 insertions(+), 31 deletions(-) create mode 100644 Zhihu-Beautification.user.js delete mode 100644 ZhihuEnhanced-Widescreen.user.js diff --git a/README.md b/README.md index 4c07ac1..60d8e37 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ | 脚本名称 | 脚本功能 | 安装 | 备用 | | :---- | :---- | :----: | :----: | -| **知乎 增强** | 宽屏显示 | **[「安装」](https://greasyfork.org/scripts/412212)** | **[「安装」](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/ZhihuEnhanced-Widescreen.user.js)** | +| **知乎 美化** | 宽屏显示 | **[「安装」](https://greasyfork.org/scripts/412212)** | **[「安装」](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/Zhihu-Beautification.user.js)** | | **知乎 增强** | 区分问题和文章 | **[「安装」](https://greasyfork.org/scripts/414027)** | **[「安装」](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/ZhihuEnhanced-TypeTip.user.js)** | | **知乎 增强** | 一键收起长篇回答 | **[「安装」](https://greasyfork.org/scripts/412205)** | **[「安装」](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/ZhihuEnhanced-CollapsedAnswer.user.js)** | | **知乎 增强** | 默认显示高清原图 | **[「安装」](https://greasyfork.org/scripts/412217)** | **[「安装」](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/ZhihuEnhanced-HD-Pictures.user.js)** | diff --git a/Zhihu-Beautification.user.js b/Zhihu-Beautification.user.js new file mode 100644 index 0000000..9006459 --- /dev/null +++ b/Zhihu-Beautification.user.js @@ -0,0 +1,29 @@ +// ==UserScript== +// @name 知乎美化 +// @version 1.0.1 +// @author X.I.U +// @description 宽屏显示 +// @include *://www.zhihu.com/* +// @icon https://static.zhihu.com/static/favicon.ico +// @license GPL-3.0 License +// @run-at document-start +// @namespace https://greasyfork.org/scripts/412212 +// ==/UserScript== + +(function() { + var style_Add = document.createElement('style'); + style_Add.innerHTML = ` +.GlobalSideBar,.Question-sideColumn,.ContentLayout-sideColumn,.SearchSideBar,.RichContent img.ArticleItem-image { + display: none !important; +} +.Topstory-mainColumn,.Question-mainColumn,.ContentLayout-mainColumn,.SearchMain,.QuestionWaiting-mainColumn { + width: 1000px !important; +} +.QuestionWaiting-mainColumn { + margin-right: 0 !important; +} +.ImageMessage-ImageView { + z-index: 999 !important; +}`; + document.head.appendChild(style_Add); +})(); \ No newline at end of file diff --git a/ZhihuEnhanced-Widescreen.user.js b/ZhihuEnhanced-Widescreen.user.js deleted file mode 100644 index fba50e9..0000000 --- a/ZhihuEnhanced-Widescreen.user.js +++ /dev/null @@ -1,30 +0,0 @@ -// ==UserScript== -// @name 知乎增强 - 宽屏显示 -// @name:zh-CN 知乎增强 - 宽屏显示 -// @name:zh-TW 知乎增強 - 寬屏顯示 -// @version 1.0.0 -// @author X.I.U -// @description 首页、热榜、搜索等页面改为宽屏显示 -// @description:zh-CN 首页、热榜、搜索等页面改为宽屏显示 -// @description:zh-TW 首頁、熱榜、搜索等頁面改為寬屏顯示 -// @include *://www.zhihu.com/* -// @icon https://static.zhihu.com/static/favicon.ico -// @license GPL-3.0 License -// @run-at document-start -// @namespace https://greasyfork.org/scripts/412212 -// ==/UserScript== - -(function() { - var style_Add = document.createElement('style'); - style_Add.innerHTML = ` -.GlobalSideBar,.Question-sideColumn,.ContentLayout-sideColumn,.SearchSideBar { - display: none; -} -.Topstory-mainColumn,.Question-mainColumn,.ContentLayout-mainColumn,.SearchMain { - width: 1000px; -} -.ImageMessage-ImageView { - z-index: 999 !important; -}`; - document.head.appendChild(style_Add); -})(); \ No newline at end of file