-
Notifications
You must be signed in to change notification settings - Fork 5
/
share.js
7 lines (7 loc) · 3.28 KB
/
share.js
1
2
3
4
5
6
7
function initShare(){var c=["Chrome\u4e5f\u80fd\u7528\u7f51\u94f6\u5566\uff01","\u6bcf\u6b21\u4ed8\u6b3e\u8fd8\u8981\u6362\u6d4f\u89c8\u5668\uff1f\u4f60out\u5566\uff01","\u73b0\u5728\u53ef\u4ee5\u5f7b\u5e95\u629b\u5f03IE\u4e86\uff01","\u8ba9IE\u53bb\u6b7b\u5427\uff01","Chrome\u7528\u7f51\u94f6\uff1a"],c=c[Math.floor(1000121*Math.random())%c.length],c="\u53ea\u8981\u5b89\u88c5\u4e86ActiveX for Chrome\uff0c\u5c31\u53ef\u4ee5\u76f4\u63a5\u5728Chrome\u91cc\u4f7f\u7528\u5404\u79cd\u7f51\u94f6\u3001\u64ad\u653e\u5668\u7b49ActiveX\u63a7\u4ef6\u4e86\u3002\u800c\u4e14\u4e0d\u7528\u5207\u6362\u5185\u6838\uff0c\u975e\u5e38\u65b9\u4fbf\u3002",
f=c+"\u4e0b\u8f7d\u5730\u5740\uff1a";var a,b=document.getElementsByTagName("script")[0];document.getElementById("facebook-jssdk")||(a=document.createElement("script"),a.id="facebook-jssdk",a.src="https://connect.facebook.net/en_US/all.js#xfbml=1",a.async=!0,b.parentNode.insertBefore(a,b));window.___gcfg={lang:navigator.language};a=document.createElement("script");a.type="text/javascript";a.async=!0;a.src="https://apis.google.com/js/plusone.js";b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,
b);a={url:"https://chrome.google.com/webstore/detail/lgllffgicojgllpmdbemgglaponefajn",type:"2",count:"1",appkey:"798098327",title:f,pic:"http://ww3.sinaimg.cn/bmiddle/8c75b426jw1dqz2l1qfubj.jpg",ralateUid:"2356524070",language:"zh_cn",rnd:(new Date).valueOf()};var b=[],d;for(d in a)b.push(d+"="+encodeURIComponent(a[d]||""));weiboshare.innerHTML='<iframe allowTransparency="true" frameborder="0" scrolling="no" src="http://hits.sinajs.cn/A1/weiboshare.html?'+b.join("&")+'" width="75" height="24"></iframe>';
Renren.share();xn_share.addEventListener("click",function(){rrShareOnclick({resourceUrl:"https://chrome.google.com/webstore/detail/lgllffgicojgllpmdbemgglaponefajn",pic:"http://ww3.sinaimg.cn/bmiddle/8c75b426jw1dqz2l1qfubj.jpg",title:"Chrome\u7528\u7f51\u94f6:ActiveX for Chrome",description:c})},!1);qqweibo.addEventListener("click",function(){for(var a=encodeURIComponent("https://chrome.google.com/webstore/detail/lgllffgicojgllpmdbemgglaponefajn"),b=encodeURI(""),c=encodeURI("801125118"),g=encodeURI("http://ww3.sinaimg.cn/bmiddle/8c75b426jw1dqz2l1qfubj.jpg"),
e="",e=document.getElementsByTagName("meta"),d=0;d<e.length;d++)/description/gi.test(e[d].getAttribute("name"));e=f;e.length>120&&(e=e.substr(0,117)+"...");e=encodeURI(e);window.open("http://share.v.t.qq.com/index.php?c=share&a=index&url="+a+"&appkey="+c+"&pic="+g+"&assname="+b+"&title="+e,"","width=700, height=680, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no")},!1);doubanshare.addEventListener("click",function(){var a=document,b=encodeURIComponent,
c=window.getSelection,d=a.getSelection,a=a.selection,c=c?c():d?d():a?a.createRange().text:"",b="http://www.douban.com/recommend/?url="+b("https://chrome.google.com/webstore/detail/lgllffgicojgllpmdbemgglaponefajn")+"&title="+b("ActiveX for Chrome")+"&sel="+b(c)+"&v=1";window.open(b,"douban","toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330")},!1)}$(document).ready(function(){div=$("#share");div.load("share.html",function(){setTimeout(initShare,200)})});document.write('<script type="text/javascript" src="rrshare.js"><\/script>');
document.write('<div id="share">');document.write("</div>");