Greasy Fork

Greasy Fork is available in English.

43xx增强

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         43xx增强
// @namespace    https://fcmsb250.github.io/
// @version      0.1
// @description  [🔥免广告领奖励]不用看广告,奖励领到吐[★开发者福利]拒绝4399疯狂调试
// @author       dsy
// @include      *://*.iwan4399.*/*
// @include      *://*.aiwan4399.*/*
// @include      *://*.4399.*/*
// @include      *://*.*4399.*/*
// @include      *://*.4399*.*/*
// @include      *://*.zxwyouxi.*/*
// @icon         https://4399.com/favicon.ico
// @license      MIT
// ==/UserScript==

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

var script1 = document.createElement("script");
script1.innerHTML =
    '\
    console.log("[43xx增强] 代码注入成功");\n\
    var times = 0;\n\
    if (window.h5api) {\n\
        var sbAD = h5api.playAd;\n\
    }\n\
    setInterval(function () {\n\
        if (window.h5api) {\n\
            h5api.playAd = function (t) {\n\
                if (times >= 20) {\n\
                    if (confirm("要不您让游戏作者吃口饭")) {\n\
                        sbAD(t);\n\
                    }\n\
                } else {\n\
                    if (t) {\n\
                        t({\n\
                            code: 10001,\n\
                            message: "播放结束",\n\
                        });\n\
                        console.log("[43xx增强] 已阻止广告并发放奖励");\n\
                        times += 1;\n\
                    }\n\
                }\n\
            };\n\
            h5api.canPlayAd = function (t) {\n\
                if (t) {\n\
                    t({\n\
                        canPlayAd: true,\n\
                        remain: 50,\n\
                    });\n\
                }\n\
                console.log("[43xx增强] 正在检测是否能播放广告");\n\
                return true;\n\
            };\n\
        }\n\
        if (window.consoleOpenCallback) {\n\
            console.log("[43xx增强] 已阻止疯狂调试模式");\n\
            consoleOpenCallback = function () { };\n\
            check = function () { };\n\
            clearInterval(window._windon_handler);\n\
        }\n\
    }, 2000);\n\
'
window.onload = function () {
    document.body.append(script1);
};

///////////////////////////////////////////////

/*
console.log("[43xx增强] 代码注入成功");
var times = 0;
if (window.h5api) {
    var sbAD = h5api.playAd;
}
setInterval(function () {
    if (window.h5api) {
        h5api.playAd = function (t) {
            if (times >= 20) {
                if (confirm("要不您让游戏作者吃口饭")) {
                    sbAD(t);
                }
            } else {
                if (t) {
                    t({
                        code: 10001,
                        message: "播放结束",
                    });
                    console.log("[43xx增强] 已阻止广告并发放奖励");
                    times += 1;
                }
            }
        };
        h5api.canPlayAd = function (t) {
            if (t) {
                t({
                    canPlayAd: true,
                    remain: 50,
                });
            }
            console.log("[43xx增强] 正在检测是否能播放广告");
            return true;
        };
    }
    if (window.consoleOpenCallback) {
        console.log("[43xx增强] 已阻止疯狂调试模式");
        consoleOpenCallback = function () { };
        check = function () { };
        clearInterval(window._windon_handler);
    }
}, 2000);
*/