您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
Set BackgroundColor of article page to base3 color of SolarizedLight Theme
// ==UserScript== // @name SolarizedLight_BackgroundColor // @namespace https://mpcx.me/ // @version 0.2 // @description Set BackgroundColor of article page to base3 color of SolarizedLight Theme // @author CharlesMa // @match https://sspai.com/article/* // @match https://sspai.com/post/* // @grant none // ==/UserScript== window.addEventListener('load', function() { var article = ""; switch (location.host) { case "sspai.com": var pageType = location.pathname.split('/')[1]; if (pageType == "article") { article = document.getElementsByClassName("series-article-wrapper"); } if (pageType == "post") { article = document.getElementsByClassName("article-wrapper"); } break; } article[0].style.backgroundColor = "#fdf6e3"; }, false);