Greasy Fork

Greasy Fork is available in English.

知乎美化

宽屏显示

目前为 2020-10-23 提交的版本。查看 最新版本

// ==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    http://greasyfork.icu/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);
})();