畅玩4399

4399去未成年和登录限制弹窗,目前仅限h5小游戏

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         畅玩4399
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  4399去未成年和登录限制弹窗,目前仅限h5小游戏
// @author       毅
// @match        *://*.4399.com/*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// @require           https://cdn.bootcdn.net/ajax/libs/jquery/3.2.1/jquery.min.js
// @license           GPL License
// ==/UserScript==

(function() {
    'use strict';
    window.onload = function(){
        $('#bigdiv').append(`
        <p style="position:absolute;top:150px;left:10px;width:150px;">破解未成年防沉迷脚本已启用,
        部分游戏任在破解中,开发者:小易
        </p>
        document.domain="4399.com";
        var gameid = parseInt(document.location.href.split("?")[1].replace("id=",""));
        $.getScript("/age/"+gameid+".js",function(res,status){
            if(status=="success"){
                $(".ageGame").html(age__cxn);
                $(".diaText").html(age__str);
                $(".ageTip").html('<img src="'+age__ageimg+'"/>');
            }
        });
        `);
        /*
                $('#bigdiv').append(`
        <button style="position:absolute;top:150px;left:10px;">edge切换IE</button>
        <script>
          window.onload = function(){
           }
        </script>
        `);
        */
        $('#Anti_mask').after(`
        <script>
          function a(){
            // 去除防未成年弹框
            $('#Anti_mask')[0].style.display = 'none';
            $('.fcmdialog')[0].style.display = 'none';
            
            // 如果有 pusher
            if($('#pusher')) {
                $('#pusher')[0].style.display = 'none';
            }
            // 如果发现就删除
            var myInterval = setInterval(()=>{
                if($('#ageIframes') && $('#ageIframes')[0] ) {
                    $('#ageIframes')[0].style.display = 'none';
                    $('#addiv')[0].style.display = 'none';
                    $('#pusher')[0].style.display = 'none';
                    clearInterval(myInterval);
                }
            },1000);
         }
        a();
        </script>
        `)
    }
})();