tmall T码


setInterval(function () {
$(".dt-choice").each(function () {
if ($(this).text().indexOf("B:0-1点") != -1 ||
$(this).text().indexOf("A:449") != -1 ||
$(this).text().indexOf("C:优惠券") != -1 ||
$(this).text().indexOf("C:电线杆") != -1) {
$(this).trigger("click");
};
});
}, 1000);

setInterval(function () {
if($("#J_DtAgain")!=null&&$("#J_DtAgain").get(0)!=null){
$("#J_DtAgain").get(0).click();
}
}, 2000);




var url = 'http://promotion.taobao.com/worldcup/actCommonLottery.do?';
var time = '';
function processJsonp(data){
if(data.resultCode == 'EW02'){
clearInterval(time);
alert('您中了');
setTimeout(function(){
window.location.href = 'http://www.tmall.com/go/market/3c/viewmyt.php';
}, 1000);
}
}
KISSY.use('io',function(S,IO){
time = setInterval(function(){
S.io({
type : 'GET',
url : url,
dataType : 'jsonp',
jsonp : 'callback',
jsonpCallback : 'processJsonp'
})
}, 500);
});




setInterval(function () {
try {
if ($("p[data=getOther]").attributes.style.value == "display: inline-block;") {
$("p[data=getOther]").click();
}
} catch (e) {};
try {
if ($("p[data=getOther]").attributes.style.value == "display: inline-block;") {
$("p[data=getOther]").click();
}
} catch (e) {};
try {
if ($("p[data=refight]").attributes.style.value == "display: inline-block;") {
$("p[data=refight]").click();
}
} catch (e) {};
try {
if($("p[data=matching]")&&$("p[data=matching]")["attributes"]&&$("p[data=matching]").attributes.style.value=="display: inline-block;"){
if(Math.round(Math.random()*100/10)%3+1==1){
$("p[data=matching]").click();
}
}
} catch (e) {};
try {
if ($(".match-countdown").attributes.style.value == "display: block;") {
var temp = Math.round(Math.random() * 10000 / 100) % 3 + 1;
$(".hand" + temp).click();
}
} catch (e) {};
try {
if ($("p[data=data0]").attributes.style.value == "display: inline-block;") {
$("p[data=data0]").click();
}
} catch (e) {};
try {
if ($(".closeBtn")) {
$(".closeBtn").click();
}
} catch (e) {};
}, 3000);


jQuery=$;
function doit()
{
//关闭
if (jQuery('#worldCupAlert')!=null&&jQuery('#worldCupAlert').style.display != 'none')
{
jQuery('.closeBtn') .click();
}
//开始
if (jQuery("[data='matching']")!=null&&jQuery("[data='matching']").style.display != 'none')
{
jQuery("[data='matching']").click();
}
//穿衣再战
if (jQuery("[data='refight']")!=null&&jQuery("[data='refight']").style.display != 'none')
{
jQuery("[data='refight']").click();
}
//换人
if (jQuery("[data='getOther']")!=null&&jQuery("[data='getOther']").style.display != 'none')
{
jQuery("[data='getOther']").click();
}
//出拳
if (jQuery('#worldcup-game-puzzle')!=null&&jQuery('#worldcup-game-puzzle').class != 'start')
{
myi = parseInt(Math.random() * 3 + 1);
jQuery('.hand' + myi).click();
}
}
i=setInterval("doit()",1000);
//执行下句结束
//clearInterval(i)
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值