// ==UserScript== // @name 微信读书 // @namespace http://tampermonkey.net/ // @version 0.30 // @description 修改字体、颜色,阅读时宽屏,隐藏一切 // @author Oscar // @match https://weread.qq.com/web/reader/* // @license AGPL License // @grant GM_addStyle // @downloadURL none // ==/UserScript== GM_addStyle(` /* 设置通用字体(排除 icon 字体) */ body :not([class*="icon"]) { font-family: 'Times New Roman', 'SimSun' !important; } /* 设置日间模式下阅读背景颜色 */ .wr_whiteTheme .readerContent .app_content { background-color: rgba(249,243,227,1) !important; } /* 设置字体颜色 */ /* .wr_whiteTheme *{ color: rgba(20,20,92,100) !important; } */ /* 设置阅读中插图透明度 */ img.wr_readerImage_opacity { opacity: 0.8 !important; } /* 使底部控制栏水平居中 */ .readerControls { margin-left: calc(50% - 60px) !important; } /* 内容区和顶部导航栏最大宽度全屏 */ .app_content, .readerTopBar { max-width: 100% !important; } /* 控制栏和顶部导航初始透明,悬停时显示 */ .readerControls, .readerTopBar { opacity: 0; transition: opacity 0.2s ease-in-out; } .readerControls:hover, .readerTopBar:hover { opacity: 1 !important; } /* 目录与笔记面板靠右排列 */ .readerCatalog, .readerNotePanel { left: unset; right: 0 !important; } `);