您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
这是一款促进博客园极致简洁和高效的插件。免费共享大量创新功能,如:净化页面等。让我们的学习体验无比简洁、专注、高效、畅快。
当前为
您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
- // ==UserScript==
- // @name EasyCNBLOGS
- // @description 这是一款促进博客园极致简洁和高效的插件。免费共享大量创新功能,如:净化页面等。让我们的学习体验无比简洁、专注、高效、畅快。
- // @version 4.0
- // @author xcanwin
- // @namespace https://github.com/xcanwin/EasyCNBLOGS/
- // @supportURL https://github.com/xcanwin/EasyCNBLOGS/
- // @license GPL-2.0-only
- // @match *://www.cnblogs.com/*/p/*.html
- // @match *://www.cnblogs.com/*/archive/*.html
- // @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 = `
- .postTitle /*隐藏[正文的][顶部的]原标题*/,
- #right_meun /*隐藏[正文的][右边的]栏*/,
- #blog_post_info_block /*隐藏[正文的][底部的]推荐关注*/
- {
- display: none !important;
- }
- /*隐藏背景*/
- html body {
- background: none !important;
- background-image: unset !important;
- background-color: unset !important;
- }
- /*展示全屏*/
- body {
- margin-left: unset !important;
- margin-right: unset !important;
- margin-bottom: unset !important;
- padding: unset !important;
- padding-bottom: unset !important;
- display: flex;
- justify-content: center;
- }
- .post {
- border: unset !important;
- border-bottom-width: unset !important;
- border-right-width: unset !important;
- padding: unset !important;
- margin-bottom: unset !important;
- width: 80%;
- }
- .postText {
- padding-right: unset !important;
- padding-left: unset !important;
- padding-bottom: unset !important;
- padding-top: unset !important;
- }
- /*调整标题*/
- span[role="heading"] {
- 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';
- }
- `;
- //净化页面
- const purifyPage = function() {
- GM_addStyle(purify_style_pc);
- };
- //超净化页面
- const purifyPageSuper = function() {
- const p = $(".post");
- $('body').innerHTML = "";
- $('body').appendChild(p);
- };
- //调整标题
- const beautyTitle = function() {
- $('.post').insertBefore($('span[role="heading"]'), $('.post').childNodes[0]);
- };
- document.addEventListener("DOMContentLoaded", function() {
- purifyPageSuper();
- beautyTitle();
- });
- purifyPage();
- })();