Raw Source
clumsyman / zhsshu

// ==UserScript==
// @name         zhsshu
// @namespace    http://tampermonkey.net/
// @version      0.0.2
// @description  load multiple chapters
// @author       clumsyman
// @updateURL https://openuserjs.org/meta/clumsyman/zhsshu.meta.js
// @downloadURL https://openuserjs.org/install/clumsyman/69shu_chapter.user.js
// @copyright 2018, clumsyman (https://openuserjs.org//users/clumsyman)
// @license MIT
// @match        https://www.zhsshu.com/read/*_*.html
// @grant        none
// ==/UserScript==

javascript:$(document).ready(function () {
try {
    var style = document.body.appendChild(document.createElement('style'));
    style.append(document.createTextNode([
        'body { font-size: xxx-large; line-height: normal; text-size-adjust: none; }',
        '#search, h1~div:not(:has(br+p)), div>br:first-child, tr:last-child, #footer { display: none; }',
        'h1~div:has(br+p) { width: 100% !important; font-size: inherit !important; line-height: inherit !important; }',
        'script+div { display: table; position: fixed; bottom: 0px; left: 0px; width: 100%; background: #C0C0C0; }',
        'script+div a { display: table-cell; }',
        'script+div a:first-of-type { text-align: left; }',
        'script+div a:last-of-type { text-align: right; }',
    ].join('\n')));
} catch(e) {
    alert(e + '\n' + e.stack);
}
});