// ==UserScript== // @name 微信读书 // @namespace http://tampermonkey.net/ // @version 0.22 // @description 修改字体、颜色,阅读时宽屏,隐藏一切 // @author Oscar // @match https://weread.qq.com/web/reader/* // @license AGPL License // @grant GM_addStyle // @downloadURL none // ==/UserScript== //字体, 字颜色, 日间模式背景颜色, 图片透明度, 右移控制栏 //内容和顶部导航宽屏, 控制栏和顶部导航透明度, 目录靠边, 笔记靠边 GM_addStyle(` * { font-family: 'Times New Roman', 'SimSun' !important; } /*.wr_whiteTheme *{color: rgba(20,20,92,100) !important; }*/ .wr_whiteTheme .readerContent .app_content { background-color: rgba(249,243,227,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; } .readerCatalog { left: unset; right: 0 !important; } .readerNotePanel { left: unset; right: 0 !important; } `); (function () { 'use strict'; var readerControls = document.querySelector('.readerControls'); var readerTopBar = document.querySelector('.readerTopBar'); if (readerControls && readerTopBar) { [readerControls, readerTopBar].forEach(function(control) { control.addEventListener('mouseenter', function() { this.style.opacity = '1'; }); control.addEventListener('mouseleave', function() { this.style.opacity = '0'; }); }); } })();