豆瓣阅读网页背景色修改

Set the background color to be white

// ==UserScript==
// @name         豆瓣阅读网页背景色修改
// @namespace    http://tampermonkey.net/
// @version      0.1.3
// @description Set the background color to be white
// @description:zh-cn 让豆瓣阅读的书在E-ink显示器上能好好显示
// @author       Linfeng
// @match        https://read.douban.com/reader/ebook/*
// @icon         https://www.google.com/s2/favicons?domain=douban.com
// @license MIT
// ==/UserScript==

(function() {
    'use strict';

    function add_css(str) {
        var style = document.createElement("style");
        // style.type = "text/css";
        style.innerHTML = str;
        document.getElementsByTagName("HEAD").item(0).appendChild(style);
    }

    add_css("html,.page,.aside{ background-color:#FFFFFF !important; } .page .hd { border-bottom: 3px solid #000000; }");
    // add_css(".article {width: 604px;}.page {width: 520px;}.content p {font-size: 20px!important}");
    add_css(".content p {font-size: 22px!important;}");
    //add_css(".page {width: 520px;}"); // Don't touch article/page objects


})();