Greasy Fork

Greasy Fork is available in English.

43xx增强

[✨免游戏开始前广告]更快进入游戏[🔥免广告领奖励]不用看广告,奖励领到吐[★开发者福利]拒绝4399疯狂调试

当前为 2021-12-19 提交的版本,查看 最新版本

在您安装前,Greasy Fork 希望您知道此脚本声明其包含了一些负面功能。这些功能也许会使脚本作者获利,而不能给您带来任何直接的金钱收益。

您只有在参与某些事后才能使用脚本的全部功能,如加入某群组、订阅某频道或在某页点赞等。 脚本作者的说明: 领奖励超过100次将要求你看一次4399的广告,毕竟游戏作者要吃饭

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

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

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

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

您需要先安装一款用户脚本管理器扩展,例如 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      http://greasyfork.icu/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);
});