蓝龙00吧 关注:98贴子:10,328
  • 1回复贴,共1

// Based on Origin version by

只看楼主收藏回复

// Based on Origin version bySteamDb.info
(function() {
if (location.hostname !== 'store.steampowered.com') {
alert('Run this code on theSteamStore!');
return;
} else if (typeof jQuery !== 'function') {
ShowAlertDialog('Fail', 'This page has no jQuery, try homepage.');
return;
} else if (document.getElementById('header_notification_area') === null) {
ShowAlertDialog('Fail', 'You have to be logged in.');
return;
}
var freePackages = [158055];
var loaded = 0,
total = freePackages.length,
modal = ShowBlockingWaitDialog('Executing...', 'Please wait until all requests finish.');
for (var i = 0; i < total; i++) {
jQuery.post(
'//store.steampowered.com/checkout/addfreelicense', {
action: 'add_to_cart',
sessionid: g_sessionID,
subid: freePackages[i]
},
function(data) {
loaded++;
modal.Dismiss();
if (loaded === total) {
ShowAlertDialog('All done!', 'Enjoy.');
} else {
modal = ShowBlockingWaitDialog('Executing...', 'Loaded ' + loaded + '/' + total);
}
}
).fail(function() {
loaded++;
modal.Dismiss();
if (loaded === total) {
ShowAlertDialog('All done!', 'Enjoy.');
} else {
modal = ShowBlockingWaitDialog('Executing...', 'Loaded ' + loaded + '/' + total);
}
});
}
}());


IP属地:湖北来自Android客户端1楼2020-03-10 18:45回复
    我靠


    IP属地:辽宁来自Android客户端2楼2020-08-21 08:08
    回复