jiathis jia.js Eval 解密 解密出来的代码

JiaThis 分享Js 插件,有了这个,可以根据需求去修改一些特定内容了.

View Code
var JIATHIS_CONFIGS = {
webhost: "http://www.jiathis.com",
lhost: "http://l.jiathis.com",
codehost: "",
sc: false,
uid: 0,
ckprefix: "jt_",
jtcbk: "jtss",
jtck: "",
custom: [],
servicelist: {
'jt_ishare': '一键分享,yjfx',
'jt_copy': '复制网址,fzwz',
'jt_fav': '收藏夹,scj',
'jt_print': '打印,dy',
'jt_email': '邮件,yj',
'jt_qzone': 'QQ空间,qqkj,sns.qzone.qq.com',
'jt_tsina': '新浪微博,xlwb,weibo.com',
'jt_tqq': '腾讯微博,txwb,t.qq.com',
'jt_tsohu': '搜狐微博,shwb,t.sohu.com',
'jt_t163': '网易微博,wywb,t.163.com',
'jt_renren': '人人网,rrw,www.renren.com',
'jt_kaixin001': '开心网,kxw,www.kaixin001.com',
'jt_sohu': '搜狐白社会,shbsh,bai.sohu.com',
'jt_taobao': '淘江湖,tjh,i.taobao.com',
'jt_douban': '豆瓣,db,www.douban.com',
'jt_xiaoyou': '朋友网,pyw,share.pengyou.com',
'jt_mop': '猫扑推客,mptk,tk.mop.com',
'jt_baidu': '百度搜藏,bdsc,cang.baidu.com',
'jt_tieba': '百度贴吧,bdtb,tieba.baidu.com',
'jt_tianya': '天涯社区,tysq,my.tianya.cn',
'jt_feixin': '飞信,fx,space.feixin.10086.cn',
'jt_qu1': '趣一网,qyw,www.qu1.com',
'jt_tifeng': '凤凰微博,fhwb,t.ifeng.com',
'jt_youshi': '优士网,ysw,www.ushi.cn',
'jt_fanfou': '饭否,ff,fanfou.com',
'jt_51': '51社区,51sq,home.51.com',
'jt_google': '谷歌,gg',
'jt_buzz': '谷歌Buzz,ggbuzz',
'jt_youdao': '有道书签,ydsq,shuqian.youdao.com',
'jt_qq': 'QQ书签,qqsq,shuqian.qq.com',
'jt_msn': 'MSN,msn',
'jt_sina': '新浪vivi,xlvivi,vivi.sina.com.cn',
'jt_huaban': '花瓣网,hbw,huaban.com',
'jt_ifensi': '粉丝网,fsw,cyworld.ifensi.com',
'jt_115': '115收藏,115sc',
'jt_hi': '百度空间,bdkj,apps.hi.baidu.com',
'jt_gmail': 'Gmail邮箱,gmailyx,mail.google.com',
'jt_hotmail': 'Hotmail邮箱,hotmailyx',
'jt_ymail': 'Yahoo! mail,yahoo! mail',
'jt_hexun': '和讯,hx,bookmark.hexun.com',
'jt_139mail': '139邮箱,139yx',
'jt_189mail': '189邮箱,189yx',
'jt_i139': '手机,sj',
'jt_189cn': '天翼社区,tysq,club.189.cn',
'jt_139': '139说客,139sk,shequ.10086.cn',
'jt_tpeople': '人民微博,rmwb,t.people.com.cn',
'jt_cnfol': '中金微博,zjwb',
'jt_googlereader': '谷歌阅读,ggyd',
'jt_translate': '谷歌翻译,ggfy',
'jt_tuita': '推他,tt,www.tuita.com',
'jt_sdonote': '麦库记事,mkjs',
'jt_digu': '嘀咕网,dgw,digu.com',
'jt_zhuaxia': '抓虾,zx',
'jt_xianguo': '鲜果,xg',
'jt_zuosa': '做啥,zs,zuosa.com',
'jt_ganniu': '赶牛网,gnw,www.ganniu.com',
'jt_42qu': '42区,42q',
'jt_miliao': '米聊,ml',
'jt_woshao': '我烧网,wsw,woshao.com',
'jt_qingsina': '新浪轻博,xlqb,qing.weibo.com',
'jt_chinanews': '中新网,zxw',
'jt_gmw': '光明网,gmw',
'jt_renjian': '人间网,rjw,renjian.com',
'jt_leihou': '雷猴网,lhw,leihou.com',
'jt_thexun': '和讯微博,hxwb,t.hexun.com',
'jt_dream163': '梦幻人生,mhrs,dream.163.com',
'jt_masar': '玛撒网,msw',
'jt_renmaiku': '人脉库,rmk,www.renmaiku.com',
'jt_fb': 'Facebook,facebook,www.facebook.com',
'jt_twitter': 'Twitter,twitter,t.co',
'jt_tumblr': 'Tumblr,tumblr,www.tumblr.com',
'jt_reddit': 'Reddit,reddit',
'jt_instapaper': 'Instapaper,instapaper,www.instapaper.com',
'jt_readitlater': 'Read It Later,readitlater,readitlaterlist.com',
'jt_diglog': '奇客发现,qkfx,www.diglog.com',
'jt_wealink': '若邻网,rlw',
'jt_bietiao': '别挑,bt,i.bietiao.com',
'jt_leshou': '乐收,ls,site.leshou.com',
'jt_myspacecn': '聚友网,jyw,blog.myspace.cn',
'jt_tongxue': '同学网,txw',
'jt_waakee': '挖客网,wkw',
'jt_cyzone': '创业邦,cyb,u.cyzone.cn',
'jt_99earth': '救救地球,jjdq',
'jt_chouti': '抽屉网,ctw',
'jt_dig24': '递客网,dkw,www.dig24.cn',
'jt_douban9dian': '豆瓣9点,db9d,9.douban.com',
'jt_hemidemi': '黑米书签,hmsq,www.hemidemi.com',
'jt_meilishuo': '美丽说,mls',
'jt_mogujie': '蘑菇街,mgj,mogujie.cn',
'jt_tianji': '天际网,tjw,app.tianji.com',
'jt_poco': 'Poco网,pocow,my.poco.cn',
'jt_baohe': '宝盒网,bhw,www.baohe.com',
'jt_yijee': '易集网,yjw,www.yijee.com',
'jt_pdfonline': 'Pdf在线转换,pdfzxzh',
'jt_printfriendly': '友好打印,yhdy',
'jt_w3c': 'W3c验证,w3cyz',
'jt_bitly': 'Bit.ly,bitly,bit.ly',
'jt_digg': 'Digg,digg,digg.com',
'jt_mailru': 'Mail.ru,mail.ru',
'jt_diigo': 'Diigo,diigo',
'jt_evernote': 'EverNote,evernote',
'jt_friendfeed': 'FriendFeed,friendfeed',
'jt_myspace': 'Myspace,myspace',
'jt_linkedin': 'LinkedIn,linkedin',
'jt_mixx': 'Mixx,mixx',
'jt_netlog': 'NetLog,netlog',
'jt_netvibes': 'Netvibes,netvibes',
'jt_phonefavs': 'Phonefavs,phonefavs',
'jt_pingfm': 'Ping.fm,ping.fm',
'jt_plaxo': 'Plaxo,plaxo',
'jt_delicious': 'Delicious,delicious,www.delicious.com',
'jt_wong': 'Mister Wong,misterwong',
'jt_stumbleupon': 'Stumbleupon,stumbleupon',
'jt_plurk': 'Plurk,plurk',
'jt_funp': 'Funp,funp',
'jt_myshare': 'Myshare,myshare',
'jt_fwisp': 'Fwisp,fwisp'
}
}; (function() {
var x = document.getElementsByTagName('script');
for (var i = 0,
ci; ci = x[i++];) {
if (/jiathis.com/.test(ci.src)) {
JIATHIS_CONFIGS.codehost = ci.src.substring(0, ci.src.lastIndexOf("/"));
ci.src.replace(/(uid)=([^&]+)/g,
function(a, p, v) {
JIATHIS_CONFIGS[p] = v
})
}
}
var d = document,
isStrict = d.compatMode == "CSS1Compat",
dd = d.documentElement,
db = d.body,
m = Math.max,
ie = !!d.all,
ua = navigator.userAgent.toLowerCase(),
head = d.getElementsByTagName("head")[0] || dd,
wlh = window.location.host,
_ckpre = JIATHIS_CONFIGS.ckprefix,
_lists = JIATHIS_CONFIGS.servicelist,
_ref = d.referrer,
_reced = false,
getWH = function() {
return {
h: (isStrict ? dd: db).clientHeight,
w: (isStrict ? dd: db).clientWidth
}
},
getS = function() {
return {
t: m(dd.scrollTop, db.scrollTop),
l: m(dd.scrollLeft, db.scrollLeft)
}
},
getP = function(a) {
var r = {
t: 0,
l: 0
},
isGecko = /gecko/.test(ua),
add = function(t, l) {
r.l += l,
r.t += t
},
p = a,
sTL = getS();
if (a && a != db) {
if (a.getBoundingClientRect) {
var b = a.getBoundingClientRect();
if (b.top == b.bottom) {
var g = a.style.display;
a.style.display = "block";
b.top = b.top - a.offsetHeight;
a.style.display = g
}
add(b.top + sTL.t - dd.clientTop, b.left + sTL.l - dd.clientLeft)
} else {
var c = d.defaultView;
while (p) {
add(p.offsetTop, p.offsetLeft);
var e = c.getComputedStyle(p, null);
if (isGecko) {
var f = parseInt(e.getPropertyValue("border-left-width"), 10) || 0,
bt = parseInt(e.getPropertyValue("border-top-width"), 10) || 0;
add(bt, f);
if (p != a && e.getPropertyValue("overflow") != "visible") {
add(bt, f)
}
}
p = p.offsetParent
}
p = a.parentNode;
while (p && p != db) {
add( - p.scrollTop, -p.scrollLeft);
p = p.parentNode
}
}
}
return r
},
creElm = function(o, t, a) {
var b = d.createElement(t || "div");
for (var p in o) {
p == "style" ? (b[p].cssText = o[p]) : (b[p] = o[p])
}
return (a || db).insertBefore(b, (a || db).firstChild)
},
_uniqueConcat = function(a, b) {
var c = {};
for (var i = 0; i < a.length; i++) {
c[a[i]] = 1
}
for (var i = 0; i < b.length; i++) {
if (!c[b[i]]) {
a.push(b[i]);
c[b[i]] = 1
}
}
return a
},
_sc = function(a, b, c) {
var d = new Date();
d.setTime(d.getTime() + c * 1000);
document.cookie = a + "=" + escape(b) + (c ? ";expires=" + d.toGMTString() : "") + ";path=/"
},
_gc = function(a) {
var b = document.cookie;
var c = b.indexOf(a + "=");
if (c != -1) {
c += a.length + 1;
var d = b.indexOf(";", c);
if (d == -1) {
d = b.length
}
return unescape(b.substring(c, d))
}
return ""
},
_MR = function(w, d, a) {
w /= d;
w = Math.round(w * 10) / 10;
if ((w + "").length > 4) {
w = Math.round(w)
}
return w + a
},
_FN = function(a) {
var d = ("" + a).split(".").shift().length;
if (isNaN(a)) {
return '--'
} else {
if (d < 4) {
return Math.round(a)
} else {
if (d < 7) {
return _MR(a, 1000, "K")
} else {
if (d < 10) {
return _MR(a, 1000000, "M")
} else {
return _MR(a, 1000000000, "B")
}
}
}
}
},
_rck = function(X) {
var A = {},
D = (new Date()).getTime(),
E,
F,
G,
H,
V = String(X);
if (V !== undefined && V.indexOf("|") > -1) {
E = V.split('|');
F = E[0];
G = E[1];
H = Math.floor((D - G) / 1000);
A.shares = parseInt(F);
A.lifetime = G;
A.timedeff = H;
return A
}
return false
},
_gck = function() {
var A = _gc("jiathis_rdc"),
B = {};
if (A) {
B = eval("(" + A + ")")
}
return B
},
_sck = function(U, S, T) {
var A = _gck();
if (A[U]) {
delete A[U]
}
$CKE.shares = parseInt(S);
A[U] = '"' + parseInt(S) + '|' + T + '"';
_sc("jiathis_rdc", _otc(A), 0)
},
_otc = function(o) {
var A = '',
B = '';
for (var k in o) {
A += B + '"' + k + '":' + o[k];
B = !B ? ',': B
}
return "{" + A + "}"
},
_renderCounter = function(a, b) {
for (var k in a) {
var c = d.getElementById(a[k]);
if (c) {
c.title = '累计分享' + b + '次';
c.innerHTML = _FN(b)
}
}
},
_custom = function() {
try {
var a = jiathis_config || {}
} catch(e) {
var a = {}
};
var u = a.services_custom;
if (u) {
if (! (u instanceof Array)) {
u = [u]
}
for (var b = 0; b < u.length; b++) {
var c = u[b];
if (c.name && c.icon && c.url) {
c.code = c.url = c.url.replace(/ /g, "");
c.code = c.code.split("//").pop().split("?").shift().split("/").shift().toLowerCase();
JIATHIS_CONFIGS.custom[c.code] = c;
JIATHIS_CONFIGS.servicelist[_ckpre + c.code] = c.name + ',' + c.code + ',' + c.code
}
}
}
},
_gw = function(a, b, c) {
var d = "";
do {
d = a[b++]
} while ( b < a . length && (! _lists [ _ckpre + d ] || c[d]));
if (c[d] || !_lists[_ckpre + d]) {
d = '';
for (var k in _lists) {
k = k.slice(3);
if (!c[k] && _lists[_ckpre + k]) {
d = k;
break
}
}
}
return d
},
_renderToolbox = function() {
try {
var f = jiathis_config || {}
} catch(e) {
var f = {}
};
_custom();
var g = f.shareImg || {},
hidemore = f.hideMore || false;
g.showType && creElm({
src: JIATHIS_CONFIGS.codehost + "/plugin.shareimg.js",
charset: "utf-8"
},
"script", head);
var j = "qzone,tsina,tqq,renren,kaixin001,t163,tsohu,douban,taobao,xiaoyou,msn,139,sohu,tieba,baidu,google",
_jck = JIATHIS_CONFIGS.jtck || j,
jck = _uniqueConcat(_jck.split(","), j.split(",")),
parentServices = {},
_WR = {},
h = d.getElementsByTagName("a"),
_url = String(f.url || d.location),
_CF = null,
webid,
likeid,
tl,
fl,
bt,
preferred;
for (var i = 0,
ci, tmp; ci = h[i++];) {
if (/\bjiathis\b/.test(ci.className)) {
ci.onmouseout = $CKE.out;
ci.onmousemove = $CKE.move; ! hidemore && (ci.onclick = $CKE.center);
ci.onmouseover = $CKE.over;
ci.hideFocus = true;
continue
}
if (ci.className && (A = ci.className.match(/^jiathis_counter_(\w+)(?:\_|$)(.*)$/)) && A[1]) {
if (typeof($CKE.containers) == "object") {
if (!_CF) {
_CF = creElm({
href: JIATHIS_CONFIGS.codehost + "/css/jiathis_counter.css",
rel: "stylesheet",
type: "text/css"
},
"link")
}
if (ci.firstChild && ci.firstChild.nodeType == 3) {
ci.removeChild(ci.firstChild)
}
if (!ci.firstChild) {
var B = A[1] == 'style' ? 'bubble': A[1],
C = A[2] ? A[2] : '',
K = "jiathis_counter_" + i,
E = d.createElement("span");
E.className = 'jiathis_button_expanded jiathis_counter jiathis_' + B + '_style'; ! hidemore && (E.onclick = function() {
$CKE.center()
});
E.id = K;
E.appendChild(d.createTextNode("--"));
if (C) {
E.style.cssText = C
}
ci.appendChild(E)
}
$CKE.containers.push(K)
}
continue
}
webid = '',
likeid = '',
tl = false,
fl = false,
bt = false,
preferred = false;
if (ci.className && (tmp = ci.className.match(/^jiathis_button_([\w\.]+)(?:\s|$)/)) && tmp[1]) {
if (tmp[1].indexOf("tools") > -1 || tmp[1].indexOf("icons") > -1) {
if (tmp[1].indexOf("tools") > -1) {
tl = true;
var s = ci.className.match(/jiathis_button_tools_([0-9]+)(?:\s|$)/)
} else {
var s = ci.className.match(/jiathis_button_icons_([0-9]+)(?:\s|$)/)
}
var l = ((s && s.length) ? Math.min(16, Math.max(1, parseInt(s[1]))) : 1) - 1;
webid = _gw(jck, l, parentServices);
preferred = true
} else {
webid = tmp[1]
}
bt = true
}
if (ci.className && (tmp = ci.className.match(/^jiathis_follow_(\w+)$/)) && tmp[1]) {
webid = tmp[1];
fl = true
}
if (webid && _lists[_ckpre + webid]) {
bt && (parentServices[webid] = 1);
var m = function(a, b) {
for (var c in b) {
var o = b[c];
if (o.preferred && o.webid == a) {
return c
}
}
return false
},
key = m(webid, _WR);
if (key !== false) {
var T = _WR[key] || {};
if (T.webid && T.ci) {
TWID = _gw(jck, 0, parentServices);
T.bt && (parentServices[TWID] = 1);
_WR[key] = {
"ci": T.ci,
"webid": TWID,
"bt": T.bt,
"fl": T.fl,
"tl": T.tl,
"preferred": T.preferred
}
}
}
_WR[i] = {
"ci": ci,
"webid": webid,
"bt": bt,
"fl": fl,
"tl": tl,
"preferred": preferred
}
} else if (bt || fl) {
ci.innerHTML = ""
}
if (ci.className && (tmp = ci.className.match(/^jiathis_like_(\w+)$/)) && tmp[1]) {
likeid = tmp[1];
var o = _gp(ci, 'data'),
ifsrc = '',
likeurl = _url;
if (likeid == 'qzone') {
var n = _gv(o.qq, false);
if (n) {
likeurl = "http://user.qzone.qq.com/" + n;
ifsrc = 'http://open.qzone.qq.com/like?url=' + encodeURIComponent(likeurl) + '&type=' + _gv(o.type, 'button_num')
} else {
ifsrc = 'http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_likeurl?url=' + encodeURIComponent(likeurl) + '&showcount=' + _gv(o.showcount, 1) + '&style=' + _gv(o.style, 2)
}
} else if (likeid == 'renren') {
var p = _gv(o.pageid, false);
likeurl = p ? ("http://page.renren.com/" + p) : likeurl;
ifsrc = 'http://www.connect.renren.com/like?url=' + encodeURIComponent(likeurl) + '&showfaces=' + _gv(o.showfaces, 'false')
} else if (likeid == 'kaixin001') {
ifsrc = 'http://www.kaixin001.com/like/like.php?url=' + encodeURIComponent(likeurl) + '&show_faces=' + _gv(o.show_faces, 'false')
}
if (ifsrc) {
ci.innerHTML = '<span class="jiathis_txt jiathis_separator jialike"><iframe src="' + ifsrc + '" allowTransparency="true" scrolling="no" border="0" frameborder="0" style="width:' + _gv(o.width, 200) + 'px;height:' + _gv(o.height, 25) + 'px"></iframe></span>'
} else {
ci.innerHTML = ''
}
}
}
if (_WR) {
for (var k in _WR) {
var o = _WR[k],
ci = o.ci,
bt = o.bt,
fl = o.fl,
tl = o.tl,
webid = o.webid;
if (typeof(ci) == "object" && ci.innerHTML.indexOf('jtico jtico_') == -1) {
var q = _lists[_ckpre + webid].split(',');
var r = ci.innerHTML.replace(/^\s+|\s+$/g, "");
var t = JIATHIS_CONFIGS.custom[webid] || {};
var u = (t.icon) ? ' style="background:url(' + t.icon + ') no-repeat left;"': '';
if (tl || r) {
r = r ? r: q[0];
ci.innerHTML = '<span class="jiathis_txt jiathis_separator jtico jtico_' + webid + '"' + u + '>' + r + '</span>'
} else {
ci.innerHTML = '<span class="jiathis_txt jtico jtico_' + webid + '"' + u + '></span>'
}
if (fl) {
ci.onclick = function(a) {
return function() {
if (a.rel) {
window.open(a.rel, '')
}
}
} (ci);
ci.title = ci.title ? ci.title: "在" + q[0] + "关注我们"
} else {
ci.onclick = function(a) {
return function() {
jiathis_sendto(a)
}
} (webid);
if (!ci.title) {
if (webid == 'copy' || webid == 'print') {
ci.title = q[0]
} else if (webid == 'fav') {
ci.title = "加入" + q[0]
} else {
ci.title = "分享到" + q[0]
}
}
}
}
}
}
if (_CF) {
$CKE.counter()
}
},
_gv = function(v, a) {
if (v === undefined) {
return a
}
return v
},
_gp = function(a, b) {
var p = [],
c = a.attributes[b];
if (c) {
o = c.nodeValue.split('&') || '';
for (var i = o.length; i--;) {
var j = o[i].split('=');
p[j[0]] = j[1]
}
}
return p
},
_rec = function(e) {
if (!_reced) {
if ( !! e.origin && e.origin.slice( - 12) == ".jiathis.com") {
if (e.data && e.data != "FALSE") {
JIATHIS_CONFIGS.jtck = e.data
}
}
_renderToolbox();
_req();
_reced = true
}
},
_req = function() {
var a, s, E = encodeURIComponent,
o = _grf(_ref),
T = document.title || "",
Y = window.location.href || "",
an = Y ? Y.indexOf(JIATHIS_CONFIGS.jtcbk) : -1,
d1 = _gd(o.host),
d2 = _gd(Y),
q = null,
f = (d1 && d2 && d1 == d2) ? false: true;
if (an > -1) {
a = Y.substr(an);
q = a.split("#").pop().split("-").pop().split("=").pop();
q = _lists[_ckpre + q] ? q: ''
}
q = (!q && o.webid) ? o.webid: q;
if (q && f) {
s = 'rsc=' + q + '&rnm=' + parseInt(JIATHIS_CONFIGS.uid) + '&rfh=' + E(o.host) + '&rfp=' + E(o.path) + '&pre=' + E(Y) + '&tit=' + escape(T); (new Image).src = JIATHIS_CONFIGS.lhost + "/l.gif?" + s
}
},
_gd = function(o) {
var d = null;
if (o) {
d = o.split(".").slice( - 2).join(".");
d = (d == "com.cn") ? o.split(".").slice( - 3).join(".") : d;
d = d.split("/").shift()
}
return d
},
_grf = function(r) {
var h = "",
p = "",
q = "",
m;
if (r.match(/(?:[a-z]\:\/\/)([^\/\?]+)(.*)/gi)) {
h = RegExp.$1;
p = RegExp.$2;
h = h ? h: "";
p = p ? p: "";
if (h) {
for (var k in _lists) {
m = _lists[k].split(',');
if (m[2] && m[2] == h) {
q = k.slice(3);
break
}
}
}
}
return {
host: h,
path: p,
webid: q
}
},
jiathis_utility_ifr = !!window.postMessage ? creElm({
style: "display:none;",
frameBorder: 0,
src: JIATHIS_CONFIGS.codehost + "/jiathis_utility.html"
},
"iframe") : null,
div = creElm({
id: "ckepop",
style: "position:absolute;z-index:1000000000;display:none;overflow:auto;"
}),
div1 = creElm({
id: "ckepop",
style: "position:absolute;z-index:1000000000;display:none;top:50%;left:50%;overflow:auto;"
}),
iframe = creElm({
style: "position:" + (/firefox/.test(ua) ? "fixed": "absolute") + ";display:none;filter:alpha(opacity=0);opacity:0",
frameBorder: 0
},
"iframe"),
timer,
inputTimer,
list,
clist,
h,
texts = {},
clickpopjs,
ckcpjs;
creElm({
href: JIATHIS_CONFIGS.codehost + "/css/jiathis_share.css",
rel: "stylesheet",
type: "text/css"
},
"link");
$CKE = {
pop: div,
centerpop: div1,
shares: 0,
containers: [],
disappear: function(a) {
var b = window.event || a,
t = b.srcElement || b.target,
tn = t.tagName ? t.tagName.toUpperCase() : "",
c = div.contains ? div.contains(t) : !!(div.compareDocumentPosition(t) & 16),
c1 = div1.contains ? div1.contains(t) : !!(div1.compareDocumentPosition(t) & 16),
c2 = true;
if (tn == "IMG") {
c2 = t.parentNode.className.indexOf("jiathis") == "-1"
} else if (tn == "A") {
c2 = t.className.indexOf("jiathis") == "-1"
} else if (tn == "SPAN") {
c2 = t.className.indexOf("jiathis_counter") == "-1"
}
if (!c && !c1 && c2) {
iframe.style.display = div1.style.display = 'none'
}
},
over: function() {
var s, T = this,
timerCont, fn = function() {
timerCont = setInterval(function() {
if (div.innerHTML) {
var p = getP(T),
wh = getWH(),
tl = getS();
with(div.style) {
display = "block";
var a = T.style.display;
T.style.display = "block";
top = (p.t + T.offsetHeight + div.offsetHeight > wh.h + tl.t ? p.t - div.offsetHeight: p.t + T.offsetHeight) + "px";
left = p.l + "px";
T.style.display = a
}
with(iframe.style) {
top = div.offsetTop + "px";
left = div.offsetLeft + "px";
width = div.offsetWidth + "px";
height = div.offsetHeight + "px";
margin = "";
display = "block"
}
clearInterval(timerCont)
}
},
50)
};
if (!clickpopjs) {
clickpopjs = creElm({
src: JIATHIS_CONFIGS.codehost + "/ckepop.js",
charset: "utf-8"
},
"script", head);
clickpopjs.onloaded = 0;
clickpopjs.onload = function() {
clickpopjs.onloaded = 1; ! ie && fn()
};
clickpopjs.onreadystatechange = function() { / complete | loaded / .test(clickpopjs.readyState) && !clickpopjs.onloaded && fn()
}
} else {
fn()
}
return false
},
out: function() {
timer = setTimeout(function() {
div.style.display = "none";
div1.style.display != "block" && (iframe.style.display = "none")
},
100)
},
move: function() {
clearTimeout(timer)
},
center: function() {
div.style.display = iframe.style.display = "none";
if (!ckcpjs) {
ckcpjs = creElm({
src: JIATHIS_CONFIGS.codehost + "/ckecenterpop.js",
charset: "utf-8"
},
"script", head);
db.style.position = "static"
} else {
var a = getS();
div1.style.display = "block";
div1.style.margin = ( - div1.offsetHeight / 2 + a.t) + "px " + ( - div1.offsetWidth / 2 + a.l) + "px";
list = d.getElementById("ckelist"),
clist = list.cloneNode(true),
h = clist.getElementsByTagName("input");
for (var i = 0,
ci; ci = h[i++];) {
texts[ci.value] = ci.parentNode
}
with(iframe.style) {
left = top = "50%";
width = div1.offsetWidth + "px";
height = div1.offsetHeight + "px";
margin = div1.style.margin;
display = "block"
}
}
return false
},
choose: function(o) {
clearTimeout(inputTimer);
inputTimer = setTimeout(function() {
var s = o.value.replace(/^\s+|\s+$/, ""),
frag = d.createDocumentFragment();
for (var p in texts) {
eval("var f = /" + (s || ".") + "/ig.test(p)"); !! texts[p].cloneNode && (f && frag.appendChild(texts[p].cloneNode(true)))
}
list.innerHTML = "";
list.appendChild(frag)
},
100)
},
centerClose: function() {
iframe.style.display = div1.style.display = "none"
},
rdc: function(o) {
if (o.shares !== undefined) {
try {
var a = jiathis_config || {}
} catch(e) {
var a = {}
};
var A = $CKE.containers,
B = parseInt(o.shares);
C = String(a.url || d.location),
D = _gck(),
J = _rck(D[C]),
T = (new Date()).getTime(),
S = B;
if (J && J.shares > B) {
S = J.shares
}
_sck(C, S, T);
_renderCounter(A, S)
}
},
counter: function() {
try {
var a = jiathis_config || {}
} catch(e) {
var a = {}
};
var A = $CKE.containers,
B = _gck(),
C = String(a.url || d.location),
J = _rck(B[C]),
R = true;
if (J && J.timedeff <= 60) {
$CKE.shares = J.shares;
_renderCounter(A, J.shares);
R = false
}
if (R) {
creElm({
src: "//i.jiathis.com/url/shares.php?url=" + encodeURIComponent(C),
charset: "utf-8"
},
"script", head)
}
},
open: function(A) {
creElm({
src: A,
charset: "utf-8"
},
"script", head)
},
fireEvent: function(F, O) {
if (F) {
F = typeof(F) == "function" ? F: eval(F);
F(O)
}
}
};
if ( !! window.addEventListener) { !! window.addEventListener && window.addEventListener("message", _rec, false)
} else {
if ( !! window.postMessage) { ( !! window.attachEvent && window.attachEvent("onmessage", _rec))
} else {
_renderToolbox()
}
}
div.onmouseover = function() {
clearTimeout(timer)
};
div.onmouseout = function() {
$CKE.out()
};
ie ? d.attachEvent("onclick", $CKE.disappear) : d.addEventListener("click", $CKE.disappear, false)
})();
function jiathis_sendto(a) {
try {
var b = jiathis_config || {}
} catch(e) {
var b = {}
};
var c = encodeURIComponent,
cu = JIATHIS_CONFIGS.custom[a] || {},
U = String(b.url || document.location),
W = "?webid=" + a,
G = "&url=" + c(U),
T = "&title=" + c(b.title || document.title),
S = b.summary ? "&summary=" + c(b.summary) : "",
F = JIATHIS_CONFIGS.uid ? "&uid=" + parseInt(JIATHIS_CONFIGS.uid) : "",
E = b.data_track_clickback ? "&jtss=1": "",
K = (b.appkey && b.appkey[a]) ? "&appkey=" + b.appkey[a] : "",
P = b.pic ? "&pic=" + c(b.pic) : "",
R = (b.ralateuid && b.ralateuid[a]) ? "&ralateuid=" + b.ralateuid[a] : "",
Q = (b.evt && b.evt['share']) ? b.evt['share'] : null,
A = 'http://s.jiathis.com/',
X = (cu.name && cu.url) ? "&acn=" + c(cu.name) + "&acu=" + c(cu.url) : "",
B = A + W + G + T + F + E + K + P + R + S + X;
if (a == 'copy' || a == 'fav' || a == 'print') {
$CKE.open(B);
if (a == 'copy') {
jiathis_copyUrl()
} else if (a == 'fav') {
jiathis_addBookmark()
} else {
window.print()
}
} else {
window.open(B, '')
}
$CKE.rdc({
shares: ($CKE.shares + 1)
});
$CKE.fireEvent(Q, {
type: 'share',
data: {
service: a,
url: U
}
});
return false
}
function jiathis_addBookmark() {
try {
var d = jiathis_config || {}
} catch(e) {
var d = {}
};
var a = d.title || document.title;
var b = d.url || parent.location.href;
var c = window.sidebar;
if (c && !!c.addPanel) {
c.addPanel(a, b, "")
} else if (document.all) {
window.external.AddFavorite(b, a)
} else {
alert('请按 Ctrl + D 为你的浏览器添加书签!')
}
}
function jiathis_copyUrl() {
try {
var d = jiathis_config || {}
} catch(e) {
var d = {}
};
var a = d.url || this.location.href;
var b = d.title || document.title;
var c = b + " " + a;
var f = navigator.userAgent.toLowerCase();
var g = f.indexOf('opera') != -1 && opera.version();
var h = (f.indexOf('msie') != -1 && !g) && f.substr(f.indexOf('msie') + 5, 3);
if (h) {
clipboardData.setData('Text', c);
alert("复制成功,请粘贴到你的QQ/MSN上推荐给你的好友!")
} else if (prompt('你使用的是非IE核心浏览器,请按下 Ctrl+C 复制代码到剪贴板', c)) {
alert('复制成功,请粘贴到你的QQ/MSN上推荐给你的好友!')
} else {
alert('目前只支持IE,请复制地址栏URL,推荐给你的QQ/MSN好友!')
}
}

 

Eval 解密方法:

   得到加密所有内容,eval 换成Alert 试一下.

  这里是将内容保存到文本文件里.下面是方法

function saveTxt( txt ){
         var fso =  new ActiveXObject("Scripting.FileSystemObject")
         var tf = fso.CreateTextFile("F:\\howay.txt",  true);
      //  填写一行,不带换行符
        tf.Write (txt);
        tf.Close();
        alert("保存成功")

}  


如果侵犯了您的版权请通知我,我会在第一时间,进行删除!

 

Email: wyl.00@163.com

转载于:https://www.cnblogs.com/Wylfocus/archive/2011/12/23/jiathis.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值