Greasy Fork

Greasy Fork is available in English.

4399增强 + 防沉迷加料辅助

[✨荒岛求生日记 高情商聊天] 无限钻石资源精力金币嗨翻天 [✌防沉迷加料辅助]推荐配合 🔥🔥🔥防沉迷加点料🔥🔥🔥 一起使用, 页游九点以后继续玩 [🔥免广告领奖励] 不用看广告,奖励领到吐,半天冲榜不是梦 [★开发者福利] 拒绝4399疯狂调试

当前为 2022-01-13 提交的版本,查看 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         4399增强 + 防沉迷加料辅助
// @namespace    https://fcmsb250.github.io/
// @version      0.3.2
// @description  [✨荒岛求生日记 高情商聊天] 无限钻石资源精力金币嗨翻天 [✌防沉迷加料辅助]推荐配合 🔥🔥🔥防沉迷加点料🔥🔥🔥 一起使用, 页游九点以后继续玩  [🔥免广告领奖励] 不用看广告,奖励领到吐,半天冲榜不是梦  [★开发者福利] 拒绝4399疯狂调试
// @author       dsy

// @include      *://*/*
// 鬼知道哪个地方有4399的API

// @icon         http://4399.com/favicon.ico
// @license      MIT
// @grant        none
// @run-at       document-start
// ==/UserScript==

// 荒岛求生日记
if (localStorage.getItem("Idle-Arks-Build-At-Sea-goldCount")) {
    localStorage.setItem("Idle-Arks-Build-At-Sea-goldCount", 999999999999999);
    localStorage.setItem("Idle-Arks-Build-At-Sea-moodCount", 999999999999999);
}
// 高情商聊天
if (localStorage.getItem("electric")) {
    localStorage.setItem("countDown", 999999999999999);
    localStorage.setItem("electric", 999999999999999);
}

window.addEventListener("load", function () {
    console.log(
        "[43xx增强] ",
        [window.H5API, window.h5api, window.consoleOpenCallback, window.PageWebApiSdk],
        [
            localStorage.getItem("Idle-Arks-Build-At-Sea-goldCount"),
            localStorage.getItem("Idle-Arks-Build-At-Sea-moodCount"),
        ],
        [localStorage.getItem("electric"), localStorage.getItem("countDown")],
        window.location.href
    );

    if (window.H5API || window.h5api || window.consoleOpenCallback || window.PageWebApiSdk) {
        setTimeout(function () {
            // h5页游
            if (window.H5API) {
                console.log("[43xx增强] #H5API");
                window.H5API.playAd = function (t) {
                    if (t) {
                        t({
                            eventType: "_canPlayAd",
                            canPlayAd: true,
                            remain: 99999,
                        });

                        console.log("[43xx增强] 已阻止广告并发放奖励");
                        window.lastCallback = t;
                        console.log("回调:", t);
                    } else {
                        console.log("[43xx增强] 无效回调");
                    }
                };
                window.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;
                };
                window.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增强] 无效回调");
                    }
                };
            }

            // h5小游戏
            if (window.h5api) {
                console.log("[43xx增强] #h5api");
                window.h5api.playAd = function (t) {
                    if (t) {
                        t({
                            code: 10001,
                            message: "播放结束",
                        });
                        console.log("[43xx增强] 已阻止广告并发放奖励");
                        window.lastCallback = t;
                        console.log("回调:", t);
                    } else {
                        console.log("[43xx增强] 无效回调");
                    }
                };
                window.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) {
                try {
                    window.consoleOpenCallback = function () {};
                    window.check = function () {};
                    window.clearInterval(window._windon_handler);
                    console.log("[43xx增强] #已阻止疯狂调试模式");
                } catch (e) {
                    console.error(e);
                }
            }

            // 7k7k.com 上引用的 Anti.js
            if (window.AntiSDK) {
                try {
                    window.AntiSDK = {};
                } catch (err) {
                    console.error(err);
                }
            }

            // (a)iwan4399.com 上引用的 ifs-web_sdk
            if (window.PageWebApiSdk) {
                try {
                    window.PageWebApiSdk.closeDialog();
                } catch (err) {
                    console.error(err);
                }
                try {
                    window.PageWebApiSdk.closeDialog(1);
                } catch (err) {
                    console.error(err);
                }
                try {
                    window.PageWebApiSdkStyle = {};
                    window.PageWebApiSdk = {};
                    window.CountDown = {};
                    window.Tools = {};
                    window.PageWebApiSdkConf = {};
                } catch (err) {
                    console.error(err);
                }
            }

            // web.4399.com 上引用的 fcmv2.js
            if (window.closePop) {
                try {
                    window.closePop();
                    window.immedToWeb = function () {};
                    window.flashpop = function () {};
                    window.poplist = function () {};
                    window.news_handle = function () {};
                    window.heartbeat = function () {};
                    window.a1101824 = function () {};
                    window.popwebtips = function () {};
                    window.playGameCountdown = function () {};
                    window.countdown = function () {};
                    window.smevent = function () {};
                    window.popup = function () {};
                } catch (err) {
                    console.error(err);
                }
            }
        }, 3000);
    }
});