您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
3/4/2023, 8:27:32 PM
当前为
// ==UserScript== // @name Background reading color for Marxist.org // @match https://www.marxists.org/* // @version 1.1 // @author Pentarasm // @description 3/4/2023, 8:27:32 PM // @license Unlicense // @namespace https://greasyfork.org/users/1044494 // ==/UserScript== /* Good Background Colors for Readers: A Study of People with and without Dyslexia https://www.cs.cmu.edu/~jbigham/pubs/pdfs/2017/colors.pdf #96ADFC - blue #DBE1F1 - blue grey #D8D3D6 - Grey #EDD1B0 - peach #F8FD89 - yellow #A5F7E1 - tourquouise */ function setBackgroundColor() { const body = document.querySelector("body"); //schimba culoarea la background body.style.background = "#DBE1F1"; // - poti sa inlocuiesti HEX-ul din "" cu alta culoare } function hideScrollbar() { const style = document.createElement("style"); //adds the style tag into the head and inserts CSS rule that hides scrollbar document.head.append(style); style.sheet.insertRule(" html { scrollbar-width: none; } "); } setBackgroundColor(); hideScrollbar();