Greasy Fork

Greasy Fork is available in English.

漫画台、看漫画web免费破解插件

漫画台脚本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         漫画台、看漫画web免费破解插件
// @namespace    9c
// @version      1.5
// @description  漫画台脚本
// @author       9c
// @match        *://*.manhuatai.com/*
// @match        *://*.kanman.com/*
// @require      https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js
// ==/UserScript==

(function() {
    'use strict';
    var $ = window.$

    unsafeWindow.onload = function () {
        $.get("https://"+unsafeWindow.location.host+"/"+unsafeWindow.comicInfo.comic_id + "/", function(res) {
            unsafeWindow.ACGN.layer.closeAll();
            var data = {}, p={}
            if (unsafeWindow.localStorage.virtualCoinRecord) {
                data = JSON.parse(unsafeWindow.localStorage.virtualCoinRecord)
            }
            if (unsafeWindow.localStorage.p) {
                p = JSON.parse(unsafeWindow.localStorage.p)
            }
            data[unsafeWindow.comicInfo.comic_id] = []
            var lis
            if($(res).find("#js_chapter_list li").length) {
                lis = $(res).find("#js_chapter_list li")
            } else {
                lis = $(res).find("#j_chapter_list li")
            }
            lis.each(function(item) {
                data[unsafeWindow.comicInfo.comic_id].push($(this).data('chapterid') ? $(this).data('chapterid') : $(this).data('chapter'))
            })

            unsafeWindow.localStorage.virtualCoinRecord = unsafeWindow.localStorage.virtualCoinRecord = JSON.stringify(data)
            setTimeout(() => {
                if (!p[unsafeWindow.comicInfo.comic_id]) {
                    p[unsafeWindow.comicInfo.comic_id] = 1
                    unsafeWindow.localStorage.p = JSON.stringify(p)
                    unsafeWindow.location.reload()
                }

            }, 100)
        })
    }
})();