-
-
Save igeligel/03fd9c7c141c378eae51e947c25d84d8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Execute this on http://store.steampowered.com/explore/ | |
var GenerateQueue = function( queueNumber ) | |
{ | |
console.log( 'Queue #' + ++queueNumber ); | |
jQuery.post( 'http://store.steampowered.com/explore/generatenewdiscoveryqueue', { sessionid: g_sessionID, queuetype: 0 } ).done( function( data ) | |
{ | |
var requests = []; | |
for( var i = 0; i < data.queue.length; i++ ) | |
{ | |
requests.push( jQuery.post( 'http://store.steampowered.com/app/10', { appid_to_clear_from_queue: data.queue[ i ], sessionid: g_sessionID } ) ); | |
} | |
jQuery.when.apply( jQuery, requests ).done( function() | |
{ | |
if( queueNumber < 3 ) | |
{ | |
GenerateQueue( queueNumber ); | |
} | |
else | |
{ | |
window.location.reload(); | |
} | |
} ); | |
} ); | |
}; | |
GenerateQueue( 0 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment