Guest User

Скрипт / Miped.ru

a guest
Jun 26th, 2017
28,001
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var GenerateQueue = function( queueNumber )
  2. {
  3. console.log( 'Queue #' + ++queueNumber );
  4.  
  5. jQuery.post( 'http://store.steampowered.com/explore/generatenewdiscoveryqueue', { sessionid: g_sessionID, queuetype: 0 } ).done( function( data )
  6. {
  7. var requests = [];
  8.  
  9. for( var i = 0; i < data.queue.length; i++ )
  10. {
  11. requests.push( jQuery.post( 'http://store.steampowered.com/app/10', { appid_to_clear_from_queue: data.queue[ i ], sessionid: g_sessionID } ) );
  12. }
  13.  
  14. jQuery.when.apply( jQuery, requests ).done( function()
  15. {
  16. if( queueNumber < 3 )
  17. {
  18. GenerateQueue( queueNumber );
  19. }
  20. else
  21. {
  22. window.location.reload();
  23. }
  24. } );
  25. } );
  26. };
  27.  
  28. GenerateQueue( 0 );
RAW Paste Data