漫画台web免费破解插件

漫画台脚本

目前為 2020-09-22 提交的版本,檢視 最新版本

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

(function() {
    'use strict';
    var $ = window.$
    unsafeWindow.onload = function () {
        var comic_info = unsafeWindow.comicInfo;
        $("#readerContainer").css("height", "auto")
        $('[data-dpr="1"] .view-port').css("left", "calc( 50% - 480px)")
        console.log();

        //$("#js_dmBox").append('<div class="code-item"><style>.tt:hover{color:#fff}            .tt {  border-radius: 8px;box-shadow: 0 0 4px 0 #009eec;background: #009eec!important;display: block;width: 60px; height: 26px; -webkit-background-size: contain;-moz-background-size: contain;background-size: contain; text-align: center;line-height: 26px;font-size: 12px; color: #fff;}</style><a class="tt" href="https://www.sockstack.cn/">博客</a></div></div>')
        //$(".qr-code").css("z-index", 999)
        $(".acgn-reader-chapter__item.no-chapter acgn-chapter__interact ").css("width", "100%")

        $("acgn-reader-chapter__item.no-chapter.acgn-chapter__interact").css("margin", "auto")
        $(".acgn-reader-chapter__item-box").each(function(){
            let chapter_id = $(this).attr("chapter-id")
            if (unsafeWindow.comicInfo.current_chapter.chapter_newid == chapter_id) {

                $(this).find(".acgn-reader-chapter__item.loading").each(function(){
                    $(this).css("padding-bottom", "0px")
                    $(this).height("auto")
                    let index = $(this).attr("chapter-index");
                    var img_url = '//mhpic.' + unsafeWindow.comicInfo.current_chapter.chapter_domain + unsafeWindow.comicInfo.current_chapter.rule.replace('$$', index) + '-mht.high.webp'
                    var html = '<div class="acgn-reader-chapter__swiper-box" style="width:100%" chapter-index="'+index+'" chapter-pid="3009">'+index+'<img src="'+img_url+'" style="width:100%"></div>'
                    if ($(document.body).width() >= 500) {
                        html = '<div class="acgn-reader-chapter__swiper-box" style="width:800px" chapter-index="'+index+'" chapter-pid="3009">'+index+'<img src="'+img_url+'" width="800"></div>'
                    }
                    $(this).html(html)
                })

            } else {
                $(this).remove()
            }
        })
        $("#js_pageNextBtn").on("click", function() {
            location.href = "https://www.manhuatai.com/"+unsafeWindow.comicInfo.comic_newid+"/"+unsafeWindow.comicInfo.next_chapter.chapter_newid+".html"
        })
        $("#js_pagePrevBtn").on("click", function() {
            location.href = "https://www.manhuatai.com/"+unsafeWindow.comicInfo.comic_newid+"/"+unsafeWindow.comicInfo.prev_chapter.chapter_newid+".html"
        })

        setInterval(function(){
            $("#layui-layer-shade1").remove()
            $("#layui-layer1").remove()
            $(".read-footer-pannel .left").remove()
            $("#layui-layer1").remove()
            $("#layui-layer-shade1").remove()
            $("#js_payChapter").remove()
        }, 500);
    }
})();