`
lan13217
  • 浏览: 483045 次
  • 性别: Icon_minigender_1
社区版块
存档分类
最新评论

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)
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics