CCFAN
Tommy Vercetti   Greece
 
 
Minami Ke!
Currently Offline
Workshop Showcase
[noparse]

↓↓↓↓


(function _exec(){
var appids,
running = true,
queueNumber,
progressDialog = ShowAlertDialog('探索中', $J('<div/>').append($J('<div/>', {'class': 'waiting_dialog_throbber'}) ).append( $J('<div/>', {'id': 'progressContainer'}).text('获取进度...') ), '停止').done(abort);
function abort(){
running = false;
progressDialog.Dismiss();
}
function retry(){
abort();
ShowConfirmDialog('错误', '是否重试?', '重试', '放弃').done(_exec)
}
function clearApp(){
if(!running)
return;
showProgress();
var appid = appids.shift();
!appid ? generateQueue() : $J.post( appids.length ? '/app/' appid : '/explore/next/', {sessionid: g_sessionID, appid_to_clear_from_queue: appid} ).done(clearApp).fail(retry);
}
function generateQueue(){
running && $J.post('/explore/generatenewdiscoveryqueue', {sessionid: g_sessionID, queuetype: 0}).done(beginQueue).fail(retry);
}
function beginQueue(){
if(!running)
return;
$J.get('/explore/').done(function(htmlText){
var cardInfo = htmlText.match(/<div class="subtext">\D (\d)\D <\/div>/);
if( !cardInfo ){
abort();
ShowAlertDialog('完成','已完成全部3轮探索队列');
return;
}
var matchedAppids = htmlText.match(/0,\s (\[.*\])/);
if( !matchedAppids ){
retry();
return;
}
appids = JSON.parse(matchedAppids[1]);
queueNumber = cardInfo[1];
appids.length == 0 ? generateQueue() : clearApp();
showProgress();
})
}
function showProgress(){
$J('#progressContainer').html( '<br>剩余' queueNumber '个待探索队列, 当前队列剩余' appids.length '个待探索游戏' );
}
beginQueue();
}())


↑↑↑↑
O^O 29 Jul, 2020 @ 9:26pm 
大佬大佬周四好!:heartp:
孤独白羊 31 Dec, 2019 @ 2:38am 
𝐻𝒶𝓅𝓅𝓎 𝒩𝑒𝓌 𝒴𝑒𝒶𝓇
Thomas-Enzo 24 Dec, 2019 @ 5:10am 
Merry Christmas,메리 크리스마스 joyeux noel
Thomas-Enzo 30 Dec, 2018 @ 12:44pm 
happy new year 2019
White Wolf 9 Oct, 2018 @ 12:15am 
02 25 Dec, 2017 @ 4:36pm 
merry christmas