您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Set grayscale effect to the actual page to avoid wrong colors in some pages in PDF reading.
// ==UserScript== // @icon https://cloud.pocketbook.digital/reader_new/static/media/logo.74f9be12.svg // @name PocketBook - Grayscale Online Reader // @version 1.0 // @author R4wwd0G // @description Set grayscale effect to the actual page to avoid wrong colors in some pages in PDF reading. // @include https://cloud.pocketbook.digital/reader_new/* // @namespace https://gf.qytechs.cn/users/700468 // ==/UserScript== function applyGrayscale() { document.querySelectorAll('.page-img').forEach(img => { img.style.filter = 'grayscale(1)'; }); } applyGrayscale(); const observer = new MutationObserver(mutations => { mutations.forEach(mutation => { if (mutation.type === 'childList') { mutation.addedNodes.forEach(node => { if (node.classList && node.classList.contains('page-img')) { node.style.filter = 'grayscale(1)'; } }); } }); }); observer.observe(document.querySelector('#Reader__content'), { childList: true, subtree: true });
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址