|
function ew(a,b){aw.call(this,a,b)}A(ew,aw); |
|
|
|
ew.prototype.D = function(a){ |
|
window.open(a, "_blank", "menubar=no,toolbar=no,resizable=yes,status=no,fullscreen=yes") |
|
}; |
|
|
|
|
|
// 只有这几行这是新加的 |
|
// Line ========= |
|
function ln(){ |
|
aw.call(this,"Line","ln") |
|
} |
|
A(ln,ew); |
|
|
|
// 下面的配置需要根据 Line 的 API 来写 |
|
ln.prototype.B=function(a,b){ |
|
return Qg("这里填写Line的分享接口, { |
|
text: '分享文案', |
|
url: bw(this,a), |
|
via:"youtube" |
|
}) |
|
}; |
|
// 手动增加 Line 结束 |
|
|
|
|
|
// 下面的几个是youtube自己的 |
|
// twiitter ========= |
|
function fw(){ |
|
aw.call(this,"Twitter","tw") |
|
} |
|
A(fw,ew); |
|
|
|
fw.prototype.B=function(a,b){ |
|
return Qg("https://twitter.com/intent/tweet", { |
|
text:b, |
|
url:bw(this,a), |
|
via:"youtube" |
|
}) |
|
}; |
|
|
|
// facebook ========= |
|
function gw(){ |
|
aw.call(this,"Facebook","fb") |
|
} |
|
|
|
A(gw,ew); |
|
|
|
gw.prototype.B=function(a,b){ |
|
return Qg("http://m.facebook.com/sharer.php", { |
|
u:bw(this,a), |
|
t:b |
|
}) |
|
}; |
|
|
|
|
|
// G+ ========= |
|
function hw(){ |
|
aw.call(this,"Google+","gp") |
|
} |
|
|
|
A(hw,ew); |
|
|
|
hw.prototype.B = function(a,b){ |
|
return Qg( Lf, { |
|
url : bw(this,a), |
|
t:b |
|
}) |
|
}; |
|
|
|
// email ========= |
|
function iw(a,b){ |
|
uu.call(this, new jw(a,b), Bq()) |
|
} |
|
|
|
A(iw,uu); |
|
|
|
// 短连接 |
|
function jw(a,b){ |
|
jq.call(this,qu); |
|
this.$=a; |
|
this.D=b; |
|
this.xB=pf?kw:lw; |
|
this.FD="http://youtu.be/"+a |
|
} |
|
|
|
A(jw,jq); |
|
|
|
jw.prototype.Hh = function(a){ |
|
if(a=this.xB[a]) this.B.Bb(), |
|
Tk({ |
|
action:"share", |
|
type:a.G, |
|
v:this.$ |
|
}), |
|
a.D(a.B(this.$,this.D)) |
|
}; |
|
|
|
// 初始化 |
|
// youtube原始的: |
|
// var lw = [new hw, new fw, new gw, new cw], |
|
// 修改后的,增加了line。 |
|
var lw = [new ln, new hw, new fw, new gw, new cw], |
|
kw = pb(lw,new dw); |