鍍金池/ 問答/HTML/ 幫忙看看這些js是什么加密?能解密出來嗎?

幫忙看看這些js是什么加密?能解密出來嗎?

<script type="text/javascript">
function item_masonry(){$('\x2e\x69\x74\x65\x6d \x69\x6d\x67')["\x6c\x6f\x61\x64"](function(){$('\x2e\x69\x6e\x66\x69\x6e\x69\x74\x65\x5f\x73\x63\x72\x6f\x6c\x6c')["\x6d\x61\x73\x6f\x6e\x72\x79"]({itemSelector: '\x2e\x6d\x61\x73\x6f\x6e\x72\x79\x5f\x62\x72\x69\x63\x6b',columnWidth:0,gutterWidth:0                                    });    });    $('\x2e\x69\x6e\x66\x69\x6e\x69\x74\x65\x5f\x73\x63\x72\x6f\x6c\x6c')["\x6d\x61\x73\x6f\x6e\x72\x79"]({itemSelector: '\x2e\x6d\x61\x73\x6f\x6e\x72\x79\x5f\x62\x72\x69\x63\x6b',columnWidth:0,gutterWidth:0});    }$(function(){    function item_callback(){$('\x2e\x69\x74\x65\x6d\x5f\x74')["\x6d\x6f\x75\x73\x65\x6f\x76\x65\x72"](function(){$(this)["\x63\x73\x73"]('\x62\x6f\x78\x2d\x73\x68\x61\x64\x6f\x77', '\x30 \x31\x70\x78 \x35\x70\x78 \x72\x67\x62\x61\x28\x33\x35\x2c\x32\x35\x2c\x32\x35\x2c\x30\x2e\x35\x29');$('\x2e\x62\x74\x6e\x73',this)["\x73\x68\x6f\x77"]();})["\x6d\x6f\x75\x73\x65\x6f\x75\x74"](function(){$(this)["\x63\x73\x73"]('\x62\x6f\x78\x2d\x73\x68\x61\x64\x6f\x77', '\x30 \x31\x70\x78 \x33\x70\x78 \x72\x67\x62\x61\x28\x33\x34\x2c\x32\x35\x2c\x32\x35\x2c\x30\x2e\x32\x29');$('\x2e\x62\x74\x6e\x73',this)["\x68\x69\x64\x65"]();});    item_masonry();}function isMatch(ruwRSZG1,NCLupL2) {  var JQ_pXR3 = ruwRSZG1["\x69\x6e\x64\x65\x78\x4f\x66"](NCLupL2); if(JQ_pXR3==-1) return false; return true; }if (isMatch(window["\x6c\x6f\x63\x61\x74\x69\x6f\x6e"]["\x68\x6f\x73\x74\x6e\x61\x6d\x65"],'\x77\x77\x77\x2e\x68\x6a\x79\x30\x31\x2e\x63\x6f\x6d') == false){window["\x6c\x6f\x63\x61\x74\x69\x6f\x6e"]["\x68\x72\x65\x66"]="\x68\x74\x74\x70\x3a\x2f\x2f\x77\x77\x77\x2e\x68\x6a\x79\x30\x31\x2e\x63\x6f\x6d";};item_callback();    $('.item').fadeIn();var sp=1;$("\x2e\x69\x6e\x66\x69\x6e\x69\x74\x65\x5f\x73\x63\x72\x6f\x6c\x6c")["\x69\x6e\x66\x69\x6e\x69\x74\x65\x73\x63\x72\x6f\x6c\x6c"]({navSelector:"\x23\x6d\x6f\x72\x65",nextSelector:"\x23\x6d\x6f\x72\x65 \x61",itemSelector:"\x2e\x69\x74\x65\x6d",loading:{img:"\x2f\x77\x65\x6e\x79\x69\x2f\x73\x6b\x69\x6e\x2f\x70\x75\x62\x75\x6c\x69\x75\x2f\x69\x6d\x61\x67\x65\x73\x2f\x6d\x61\x73\x6f\x6e\x72\x79\x5f\x6c\x6f\x61\x64\x69\x6e\x67\x5f\x31\x2e\x67\x69\x66",msgText:' ',finishedMsg:'\u6728\u6709\u4e86',finished:function(){sp++;if(sp>=1000){$("\x23\x6d\x6f\x72\x65")["\x72\x65\x6d\x6f\x76\x65"]();$("\x23\x69\x6e\x66\x73\x63\x72\x2d\x6c\x6f\x61\x64\x69\x6e\x67")["\x68\x69\x64\x65"]();$("\x23\x70\x61\x67\x65")["\x73\x68\x6f\x77"]();$(window)["\x75\x6e\x62\x69\x6e\x64"]('\x2e\x69\x6e\x66\x73\x63\x72')}}},errorCallback:function(){$("\x23\x70\x61\x67\x65")["\x73\x68\x6f\x77"]()}},function(newElements){var $newElems=$(newElements);$('.infinite_scroll').masonry('appended',$newElems,false);$newElems.fadeIn();item_callback();return})});
</script>


<script type="text/javascript">
$(function(){    $(window)["\x73\x63\x72\x6f\x6c\x6c"](function(){$(window)["\x73\x63\x72\x6f\x6c\x6c\x54\x6f\x70"]()>1000 ? $("\x23\x67\x6f\x74\x6f\x70\x62\x74\x6e")["\x63\x73\x73"]('\x64\x69\x73\x70\x6c\x61\x79','')["\x63\x6c\x69\x63\x6b"](function(){$(window)["\x73\x63\x72\x6f\x6c\x6c\x54\x6f\x70"](0);    }):$("\x23\x67\x6f\x74\x6f\x70\x62\x74\x6e")["\x63\x73\x73"]('\x64\x69\x73\x70\x6c\x61\x79','\x6e\x6f\x6e\x65');        });});
</script>
回答
編輯回答
心悲涼

推薦鏈接:http://bbs.csdn.net/topics/39...

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <div id=code style='display:none'>這里放你的那些代碼</div>
    <script>
    var s = document.getElementById('code').innerHTML;
    s = s.replace(/\\x../g, function(a) {return eval('"'+a+'"')})
      .replace(/\\u(....)/g, function(a,b){return String.fromCharCode(eval('0x'+b))})
    document.write(s)
    </script>
</body>
</html>

解密結(jié)果如樓上邊城老師。

2017年7月15日 01:51
編輯回答
老梗
function item_masonry() {
    $(".item img")["load"](function() {
        $(".infinite_scroll")["masonry"]({
            itemSelector: ".masonry_brick",
            columnWidth: 0,
            gutterWidth: 0
        });
    });
    $(".infinite_scroll")["masonry"]({
        itemSelector: ".masonry_brick",
        columnWidth: 0,
        gutterWidth: 0
    });
}
$(function() {
    function item_callback() {
        $(".item_t")["mouseover"](function() {
            $(this)["css"]("box-shadow", "0 1px 5px rgba(35,25,25,0.5)");
            $(".btns", this)["show"]();
        })["mouseout"](function() {
            $(this)["css"]("box-shadow", "0 1px 3px rgba(34,25,25,0.2)");
            $(".btns", this)["hide"]();
        });
        item_masonry();
    }
    function isMatch(ruwRSZG1, NCLupL2) {
        var JQ_pXR3 = ruwRSZG1["indexOf"](NCLupL2);
        if (JQ_pXR3 == -1) return false;
        return true;
    }
    if (isMatch(window["location"]["hostname"], "www.hjy01.com") == false) {
        window["location"]["href"] = "http://www.hjy01.com";
    }
    item_callback();
    $(".item").fadeIn();
    var sp = 1;
    $(".infinite_scroll")["infinitescroll"]({
        navSelector: "#more",
        nextSelector: "#more a",
        itemSelector: ".item",
        loading: {
            img: "/wenyi/skin/pubuliu/images/masonry_loading_1.gif",
            msgText: " ",
            finishedMsg: "木有了",
            finished: function() {
                sp++;
                if (sp >= 1000) {
                    $("#more")["remove"]();
                    $("#infscr-loading")["hide"]();
                    $("#page")["show"]();
                    $(window)["unbind"](".infscr");
                }
            }
        },
        errorCallback: function() {
            $("#page")["show"]();
        }
    },
    function(newElements) {
        var $newElems = $(newElements);
        $(".infinite_scroll").masonry("appended", $newElems, false);
        $newElems.fadeIn();
        item_callback();
        return;
    });
});

$(function() {
    $(window)["scroll"](function() {
        $(window)["scrollTop"]() > 1000 ? $("#gotopbtn")["css"]("display", "")["click"](function() {
            $(window)["scrollTop"](0);
        }) : $("#gotopbtn")["css"]("display", "none");
    });
});
2017年2月14日 04:30