EasyJIANSHU

这是一款促进简书极致简洁和高效的插件。免费共享大量创新功能,如:净化页面、展示全屏等。让我们的学习体验无比简洁、专注、高效、畅快。

当前为 2023-12-08 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         EasyJIANSHU
// @description  这是一款促进简书极致简洁和高效的插件。免费共享大量创新功能,如:净化页面、展示全屏等。让我们的学习体验无比简洁、专注、高效、畅快。
// @version      3.0
// @author       xcanwin
// @namespace    https://github.com/xcanwin/EasyJIANSHU/
// @supportURL   https://github.com/xcanwin/EasyJIANSHU/
// @license      GPL-2.0-only
// @match        *://www.jianshu.com/p/*
// @grant        GM_addStyle
// @run-at       document-start
// ==/UserScript==

(function() {
    'use strict';

    const $ = (Selector, el) => (el || document).querySelector(Selector);
    const $$ = (Selector, el) => (el || document).querySelectorAll(Selector);

    /*电脑端净化样式*/
    const purify_style_pc = `
#__next>header /*隐藏[置顶的][顶部的]菜单栏*/,
footer /*隐藏[置顶的][底部的]评论查看栏*/,
.ant-back-top /*隐藏[置顶的][底部的]返回顶部*/,
._3Pnjry /*隐藏[左边的]栏*/,
._2OwGUo /*隐藏[右边的]栏*/,
._3kba3h /*隐藏[正文的][顶部的]关注*/,
._3URWaO /*隐藏[正文的][顶部的]归属地*/,
._13D2Eh /*隐藏[正文的][顶部的]头像*/,
._3tCVn5 /*隐藏[正文的][顶部的]钻石*/,
._1kCBjS /*隐藏[正文的][底部的]文章分类*/,
._19DgIp /*隐藏[正文的][底部的]下划线*/,
._13lIbp /*隐藏[正文的][底部的]APP推荐*/,
.d0hShY /*隐藏[正文的][底部的]用户介绍*/,
.ouvJEz:nth-of-type(2) /*隐藏[正文的][底部的]推荐文章*/,
.ouvJEz:nth-of-type(3) /*隐藏[正文的][底部的]空白*/,
#note-page-comment /*隐藏[正文的][底部的]评论发言栏*/
{
    display: none !important;
}

/*隐藏背景*/
._3kbg6I {
    background: none !important;
    background-image: unset !important;
    background-color: unset !important;
}

/*调整标题*/
._1RuRku {
    display: flex;
    justify-content: center;
    margin-top: 35px !important;
    margin-bottom: 20px !important;
    color: black !important;
    font-size: 33px !important;
    font-family: 'PingFang SC','Microsoft YaHei','SimHei','Arial','SimSun';
}

/*调整文章信息栏*/
.rEsl9f {
    background: #f8f8f8;
    border-radius: 4px;
}

/*展示全屏*/
._3VRLsv {
    padding-left: unset !important;
    padding-right: unset !important;
    padding-top: unset !important;
    width: unset !important;
}
._gp-ck {
    margin-bottom: unset !important;
    margin-right: unset !important;
    width: 80% !important;
}
.ouvJEz {
    padding: unset !important;
}
`;
    //净化页面
    const purifyPage = function() {
        GM_addStyle(purify_style_pc);
    };

    purifyPage();

})();