Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function()
- {
- if( location.href.match( /^https:\/\/store\.steampowered\.com\/account\/licenses\/?$/ ) === null )
- {
- alert( 'Please run this on Steam\'s account page details: https://store.steampowered.com/account/licenses/' );
- window.location = 'https://store.steampowered.com/account/licenses/';
- return;
- }
- var freePackages =
- [
- 21360, // [REMOVE] Dragon Nest Europe
- 25518, // [REMOVE] Arma 2: DayZ Mod
- 30722, // [REMOVE] Heroes of Havoc
- 30798, // [REMOVE] World War II Online
- 31208, // [REMOVE] Dofus
- 33753, // [REMOVE] AION Free-to-Play
- 37546, // [REMOVE] Sven Co-op Dedicated Server
- 48848, // [REMOVE] Company of Heroes: Eastern Front
- 49612, // [REMOVE] Granado Espada
- 52601, // [REMOVE] Gigantic
- 53898, // [REMOVE] Heavy Metal Machines
- 54405, // [REMOVE] The Exiled
- 60061, // [REMOVE] Google Earth VR
- 60086, // [REMOVE] NASCAR '15 Victory Edition Demo
- 61841, // [REMOVE] Fast Detect
- 63370, // [REMOVE] Rumble Fighter: Unleashed
- 64924, // [REMOVE] Construct: Embers of Life
- 65638, // [REMOVE] The Elder Scrolls: Legends
- 67948, // [REMOVE] Starpoint Gemini 2: Origins
- 68997, // [REMOVE] Retro Game Crunch Soundtrack
- 69762, // [REMOVE] RaceRoom Dedicated Server
- 70962, // [REMOVE] Alteil: Horizons
- 71575, // [REMOVE] Mindshow
- 72217, // [REMOVE] Florensia
- 74164, // [REMOVE] 9Dragons
- 74478, // [REMOVE] High Fidelity
- 74984, // [REMOVE] Littlstar VR Cinema
- 76284, // [REMOVE] Anarchy Online
- 76345, // [REMOVE] The Spookening
- 76556, // [REMOVE] RPG Tycoon Demo
- 76740, // [REMOVE] Deus Ex: Revision
- 76850, // [REMOVE] Business Tour - Online Multiplayer Board Game
- 77266, // [REMOVE] Walkerman Prologue
- 78408, // [REMOVE] Bitku
- 79653, // [REMOVE] Tomorrow
- 80392, // [REMOVE] The Juicer - Official Soundtrack
- 80623, // [REMOVE] UniBall
- 81065, // [REMOVE] The Stanford Ocean Acidification Experience
- 81638, // [REMOVE] Warhammer: Vermintide VR - Hero Trials
- 82891, // [REMOVE] Space Needle VR
- 83229, // [REMOVE] Skyforge
- 85376, // [REMOVE] Eye of the Owl
- 86858, // [REMOVE] Gods and Idols
- 88254, // [REMOVE] The Madness of Little Emma Demo
- 88823, // [REMOVE] Project CARS - Pagani Edition
- 89020, // [REMOVE] AdventureQuest 3D
- 89490, // [REMOVE] Rytmik Player
- 90118, // [REMOVE] XCOM 2: War of the Chosen - Propaganda Center
- 91314, // [REMOVE] Kiya
- 91330, // [REMOVE] Grimoire: Manastorm
- ];
- var ownedPackages = {};
- jQuery( '.account_table a' ).each( function( i, el )
- {
- var match = el.href.match( /javascript:RemoveFreeLicense\( ([0-9]+), '/ );
- if( match !== null )
- {
- ownedPackages[ +match[ 1 ] ] = true;
- }
- } );
- var i = 0,
- loaded = 0,
- package = 0,
- total = freePackages.length,
- modal = ShowBlockingWaitDialog( 'Executing…',
- 'Please wait until all requests finish. Ignore all the errors, let it finish.' );
- for( ; i < total; i++ )
- {
- package = freePackages[ i ];
- if( ownedPackages[ package ] )
- {
- loaded++;
- continue;
- }
- jQuery.post(
- '//store.steampowered.com/checkout/addfreelicense',
- {
- action: 'add_to_cart',
- sessionid: g_sessionID,
- subid: package
- }
- ).always( function( )
- {
- loaded++;
- modal.Dismiss();
- if( loaded >= total )
- {
- location.reload();
- }
- else
- {
- modal = ShowBlockingWaitDialog( 'Executing…',
- 'Loaded <b>' + loaded + '</b>/' + total + '.' );
- }
- }
- );
- }
- }());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement