您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
修改小说样式
当前为
// ==UserScript== // @name 小说适配器 // @namespace http://tampermonkey.net/ // @version 0.12 // @description 修改小说样式 // @author kurl // @match https://www.kdzw.net/* // @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; var o = document.getElementsByClassName("content")[0]; //0代表第一个,option是标签名 o.setAttribute("style","font-size: 45px;font-family:PingFang SC, sans-serif;line-height:1.5;background:#e0eee1;"); //设置属性value为10 var a = document.getElementsByTagName("body")[0]; a.setAttribute("style","background-color:#e0eee1;"); // Your code here... })();