Jinxin Novel ZhaoZe

下载黑沼泽俱乐部中的小说

Bu script direkt olarak kurulamaz. Başka scriptler için bir kütüphanedir ve meta yönergeleri içerir // @require https://update.sleazyfork.org/scripts/487102/1330370/Jinxin%20Novel%20ZhaoZe.js

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         Jinxin Novel ZhaoZe
// @namespace    https://gitee.com/jinxin11112/tampermonkey
// @version      0.1.3
// @description  下载黑沼泽俱乐部中的小说
// @author       jinxin
// @match        https://zhaoze.pro/*
// @grant        none
// @license MIT
// ==/UserScript==

class ZhaoZe {
    'use strict';

    excludeTags = ['div', 'blockquote', 'fieldset', 'img']

    getContent() {
        let messages = document.getElementsByClassName("entry-content")[0].children;
        let contentList = [];
        for (let message of messages) {
            let tagName = message.tagName;
            if (this.excludeTags.includes(tagName.toLowerCase())) continue;
            let content = message.innerHTML;
            if (content) {
                content = this.removeGarbled(content);
                contentList.push(content);
                contentList.push('\n\n')
            }
        }
        return contentList;
    }

    removeGarbled(str) {
        if (!str) return str;
        str = str.replace(/ /g, ' ')
        str = str.replace(/ – 黑沼泽俱乐部/g, '')
        return str;
    }

    getTitle() {
        let title = document.title;
        title = title.replace(' - 调教小说', '');
        title = title.replace('- 黑沼泽俱乐部', '');
        title = title.replace('-调教小说原创,翻译,转载', '');
        return title;
    }
}