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