Greasy Fork

Greasy Fork is available in English.

小说适配器

try to take over the world!

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         小说适配器
// @namespace    http://tampermonkey.net/
// @version      0.13
// @description  try to take over the world!
// @author       You
// @match        https://www.kdzw.cc/*
// @match        https://www.8czw.com/8837/*
// @match        https://www.mayiwxw.com/*
// @match        https://www.linovel.net/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net
// @grant        none
// @license MIT
// ==/UserScript==
//轻之文库
if(window.location.href.indexOf("https://www.linovel.net")>-1){
(function() {
    'use strict';
    var o = document.getElementsByClassName("l");
    for(var i=0;i<o.length;i++){
        var a = document.getElementsByClassName("l")[i];
        a.setAttribute("style","font-size: 40px;background-color:#c9e0cb;line-height: 1.5;margin-top:65px;text-indent: 2em;");
   }
    //o.setAttribute("style","font-size: 45px;background-color:#c9e0cb;width:90%;line-height: 1.5;");
    var b = document.getElementsByClassName("read-content")[0];
    b.setAttribute("style","background-color:#c9e0cb;font-family:SimHei;width: 1024px;");
    var c = document.getElementsByClassName("read read_show read-white")[0];
    c.setAttribute("style","background-color:#e0eee1;");
    var d = document.getElementsByClassName("article-content")[0];
    d.setAttribute("style","width: 850px;");
  //  document.getElementsById('content').setAttribute("style","font-size: 40px;");
    // Your code here...
})();
}
if(window.location.href.indexOf("https://www.kdzw.cc")>-1){
(function() {
  //  'use strict';
    alert("Wellcome");
    var o = document.getElementById("content");
    o.setAttribute("style","font-size: 40px;background-color:#c9e0cb;");
    var a = document.getElementsByTagName("body")[0];
    a.setAttribute("style","background-color:#c9e0cb;");
    // Your code here...
})();
}
    //getElementById()
    //getElementsByTagName()
    //getElementsByClassName()