복권 11회 S

수또를 자동으로 반복해서 돌려줍니다

目前為 2019-03-09 提交的版本,檢視 最新版本

// ==UserScript==
// @name     복권 11회 S
// @version  1
// @include https://www.suyongso.com/lottery*
// @author 리드(https://www.suyongso.com)
// @description 수또를 자동으로 반복해서 돌려줍니다
// @grant    none
// @namespace https://greasyfork.org/users/226807
// ==/UserScript==

// myAjax 코오드 출처 https://www.suyongso.com/anidong/25599804
function myAjax(count) {
	if (count >= 13) {
    console.log("복권 11회 완료");
    return;
  }
  
	$.ajax({
		type: 'POST',
		url: 'https://www.suyongso.com/index.php',
		data : {moduel : "loterrylotto", act : "procLotterylottoBuyLottery"},
		success: function(){
			count++;
			myAjax(count);
      console.log("복권을 1회 돌렸습니다!");
		}
	});
}


var r = confirm("확인을 누르시면 복권을 11회 돌립니다. 확인 누르신 뒤에는 조금만 기다려주세요.");
if (r == true) {
  myAjax(0);
} else {
  console.log("취소 누름.");
}