43xx增强

[🔥免广告领奖励]不用看广告,奖励领到吐[★开发者福利]拒绝4399疯狂调试

目前為 2021-12-19 提交的版本,檢視 最新版本

在您安裝前,Greasy Fork希望您了解本腳本包含“負面功能”,可能幫助腳本的作者獲利,而不能給你帶來任何收益。

此腳本只有在您 註冊後才能使用全部的功能, 例如加入群組, 訂閱頻道, 或是點讚頁面。 腳本的作者解釋: 领奖励超过100次将要求你看一次4399的广告,毕竟游戏作者要吃饭

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         43xx增强
// @namespace    https://fcmsb250.github.io/
// @version      0.2.2
// @description  [🔥免广告领奖励]不用看广告,奖励领到吐[★开发者福利]拒绝4399疯狂调试
// @author       dsy
// @include      *://*/*
// @icon         http://4399.com/favicon.ico
// @license      MIT
// @antifeature  membership 领奖励超过100次将要求你看一次4399的广告,毕竟游戏作者要吃饭
// @grant        GM_registerMenuCommand
// @grant        GM_openInTab
// @grant        GM_getValue
// @grant        GM_setValue
// @run-at       document-start
// @require      https://greasyfork.org/scripts/437198-%E7%A0%96%E5%8F%B6%E6%88%BF%E9%A3%8E%E6%B2%99/code/%E7%A0%96%E5%8F%B6%E6%88%BF%E9%A3%8E%E6%B2%99.js?version=999470
// ==/UserScript==

// NO CTRL+C OR CTRL+V
// NO CTRL+C OR CTRL+V
// NO CTRL+C OR CTRL+V

function max() {
    // 鬼知道哪个地方有4399的API
    console.log(
        "[43xx增强] ",
        [
            window.H5API,
            window.h5api,
            window.consoleOpenCallback,
            window.H5API || window.h5api || window.consoleOpenCallback,
        ],
        window.location.href
    );
    var script1 = document.createElement("script");
    GM_registerMenuCommand("10000倍奖励", function () {
        GM_setValue("piece", "0000");
    });
    GM_registerMenuCommand("1倍奖励", function () {
        GM_setValue("piece", "");
    });
    var piece = GM_getValue("piece", "");
    script1.innerHTML =
        '\
        console.log("[43xx增强] #代码注入成功");\n\
        var times = 0;\n\
        if (window.h5api) {\n\
            var sbAD1 = h5api.playAd;\n\
        }\n\
        if (window.H5API) {\n\
            var sbAD2 = H5API.playAd;\n\
        }\n\
        setTimeout(function () {\n\
            if (document.querySelector("#addiv")) {\n\
                document.querySelector("#addiv").remove();\n\
                console.log("[43xx增强] #no ads");\n\
            }\n\
    \n\
            if (window.H5API) {\n\
                console.log("[43xx增强] #H5API");\n\
                H5API.playAd = function (t) {\n\
                    if (times >= 100) {\n\
                        if (confirm("要不您让游戏作者吃口饭")) {\n\
                            sbAD2(t);\n\
                            times = 0;\n\
                        }\n\
                    } else {\n\
                        if (t) {\n\
                            for (let index = 0; index < 1' +
        piece +
        '; index++) {\n\
                                t({\n\
                                    eventType: "_canPlayAd",\n\
                                    canPlayAd: true,\n\
                                    remain: 99999,\n\
                                });\n\
                            }\n\
                            console.log("[43xx增强] 已阻止广告并发放奖励");\n\
                            times += 1;\n\
                            window.lastCallback = t;\n\
                            console.log("回调:", t);\n\
                        } else {\n\
                            console.log("[43xx增强] 无效回调");\n\
                        }\n\
                    }\n\
                };\n\
                H5API.canPlayAd = function (t) {\n\
                    if (t) {\n\
                        console.log("[43xx增强] 正在检测是否能播放广告");\n\
                        t({\n\
                            canPlayAd: true,\n\
                            remain: 99999,\n\
                        });\n\
                        console.log("回调:", t);\n\
                        window.lastCallback = t;\n\
                    } else {\n\
                        console.log("[43xx增强] 无效回调");\n\
                    }\n\
                    return true;\n\
                };\n\
                H5API.openVerify = H5API.verifyState = function (t) {\n\
                    if (t) {\n\
                        console.log("[43xx增强] 正在告诉游戏玩家不是未成年");\n\
                        t({\n\
                            eventType: "_verifyState",\n\
                            data: {\n\
                                needVerify: false,\n\
                                antiIndulge: 1,\n\
                            },\n\
                        });\n\
                        console.log("回调:", t);\n\
                        window.lastCallback = t;\n\
                    } else {\n\
                        console.log("[43xx增强] 无效回调");\n\
                    }\n\
                };\n\
            }\n\
    \n\
            if (window.h5api) {\n\
                console.log("[43xx增强] #h5api");\n\
                h5api.playAd = function (t) {\n\
                    if (times >= 100) {\n\
                        if (confirm("要不您让游戏作者吃口饭")) {\n\
                            sbAD1(t);\n\
                            times = 0;\n\
                        }\n\
                    } else {\n\
                        if (t) {\n\
                            for (let index = 0; index < 1' +
        piece +
        '; index++) {\n\
                                t({\n\
                                    code: 10001,\n\
                                    message: "播放结束",\n\
                                });\n\
                            }\n\
                            console.log("[43xx增强] 已阻止广告并发放奖励");\n\
                            times += 1;\n\
                            window.lastCallback = t;\n\
                            console.log("回调:", t);\n\
                        } else {\n\
                            console.log("[43xx增强] 无效回调");\n\
                        }\n\
                    }\n\
                };\n\
                h5api.canPlayAd = function (t) {\n\
                    if (t) {\n\
                        console.log("[43xx增强] 正在检测是否能播放广告");\n\
                        t({\n\
                            canPlayAd: true,\n\
                            remain: 99999,\n\
                        });\n\
                        console.log("回调:", t);\n\
                        window.lastCallback = t;\n\
                    } else {\n\
                        console.log("[43xx增强] 无效回调");\n\
                    }\n\
                    return true;\n\
                };\n\
            }\n\
    \n\
            if (window.consoleOpenCallback) {\n\
                consoleOpenCallback = function () {};\n\
                check = function () {};\n\
                clearInterval(window._windon_handler);\n\
                console.log("[43xx增强] #已阻止疯狂调试模式");\n\
            }\n\
        }, 3000);\n\
';
    document.head.appendChild(script1);
}
window.onload = max;

/////////////////////要注入的代码//////////////////////////

(function () {
    console.log("[43xx增强] #代码注入成功");
    var times = 0;
    if (window.h5api) {
        var sbAD1 = h5api.playAd;
    }
    if (window.H5API) {
        var sbAD2 = H5API.playAd;
    }
    setTimeout(function () {
        if (document.querySelector("#addiv")) {
            document.querySelector("#addiv").remove();
            console.log("[43xx增强] #no ads");
        }

        if (window.H5API) {
            console.log("[43xx增强] #H5API");
            H5API.playAd = function (t) {
                if (times >= 100) {
                    if (confirm("要不您让游戏作者吃口饭")) {
                        sbAD2(t);
                        times = 0;
                    }
                } else {
                    if (t) {
                        for (let index = 0; index < 1; index++) {
                            t({
                                eventType: "_canPlayAd",
                                canPlayAd: true,
                                remain: 99999,
                            });
                        }
                        console.log("[43xx增强] 已阻止广告并发放奖励");
                        times += 1;
                        window.lastCallback = t;
                        console.log("回调:", t);
                    } else {
                        console.log("[43xx增强] 无效回调");
                    }
                }
            };
            H5API.canPlayAd = function (t) {
                if (t) {
                    console.log("[43xx增强] 正在检测是否能播放广告");
                    t({
                        canPlayAd: true,
                        remain: 99999,
                    });
                    console.log("回调:", t);
                    window.lastCallback = t;
                } else {
                    console.log("[43xx增强] 无效回调");
                }
                return true;
            };
            H5API.openVerify = H5API.verifyState = function (t) {
                if (t) {
                    console.log("[43xx增强] 正在告诉游戏玩家不是未成年");
                    t({
                        eventType: "_verifyState",
                        data: {
                            needVerify: false,
                            antiIndulge: 1,
                        },
                    });
                    console.log("回调:", t);
                    window.lastCallback = t;
                } else {
                    console.log("[43xx增强] 无效回调");
                }
            };
        }

        if (window.h5api) {
            console.log("[43xx增强] #h5api");
            h5api.playAd = function (t) {
                if (times >= 100) {
                    if (confirm("要不您让游戏作者吃口饭")) {
                        sbAD1(t);
                        times = 0;
                    }
                } else {
                    if (t) {
                        for (let index = 0; index < 1; index++) {
                            t({
                                code: 10001,
                                message: "播放结束",
                            });
                        }
                        console.log("[43xx增强] 已阻止广告并发放奖励");
                        times += 1;
                        window.lastCallback = t;
                        console.log("回调:", t);
                    } else {
                        console.log("[43xx增强] 无效回调");
                    }
                }
            };
            h5api.canPlayAd = function (t) {
                if (t) {
                    console.log("[43xx增强] 正在检测是否能播放广告");
                    t({
                        canPlayAd: true,
                        remain: 99999,
                    });
                    console.log("回调:", t);
                    window.lastCallback = t;
                } else {
                    console.log("[43xx增强] 无效回调");
                }
                return true;
            };
        }

        if (window.consoleOpenCallback) {
            consoleOpenCallback = function () {};
            check = function () {};
            clearInterval(window._windon_handler);
            console.log("[43xx增强] #已阻止疯狂调试模式");
        }
    }, 3000);
});