Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function()
- {
- if( location.href.match( /^https:\/\/store\.steampowered\.com\/account\/?$/ ) === null )
- {
- alert( 'Please run this on Steam\'s account page details: https://store.steampowered.com/account/' );
- return;
- }
- var freePackages =
- [
- // 111 packages
- 1947, // The Witcher: Director's Cut Update
- 12275, // Dungeon Defenders Pre-Alpha CTF
- 12276, // Dungeon Defenders Dev Kit
- 12997, // Sanctum Holiday DLC
- 13048, // Bunch of Heroes Holiday Pack
- 13261, // Race 07 - Crowne Plaza Addon
- 13275, // Delve Deeper User-Created DLC
- 13437, // Skyrim HD Texture Pack
- 13512, // Choplifter HD - Zombie Zombie Zombie
- 13685, // Latin American Language Pack
- 14151, // Wargame: European Escalation - New Battlefields DLC
- 14520, // Sanctum DLC
- 14981, // Dungeons of Dremor DLC2
- 15301, // Wargame: European Escalation - Conquest DLC
- 16128, // Sleeping Dogs: HD pack
- 16916, // Wargame: European Escalation - Commander DLC
- 17921, // Sleeping Dogs Ghost Pig Pack
- 18476, // Sleeping Dogs: HD pack JP
- 18806, // A Virus Named TOM: Winter Wonderland
- 18940, // Worms Ultimate Mayhem - Single Player Pack
- 18978, // Magicka: Free Jolnir's Workshop
- 18996, // Painkiller Hell and Damnation: Satan Claus DLC
- 19266, // Pro Evolution Soccer 2013 Data Pack - March 2013 DLC
- 19315, // Omerta- The Bulgarian Colossus DLC
- 25518, // Arma II: DayZ Mod
- 25734, // DmC Devil May Cry: Bloody Palace Mode
- 25735, // DmC Devil May Cry: Bloody Palace Mode LV
- 25845, // Afterfall Dirty Arena DLC
- 26624, // Waking Mars - Soundtrack
- 26775, // Resident Evil 6: Wallpaper
- 27535, // X3: Reunion Bonus Package
- 28350, // Substance Designer Free DLC
- 30540, // Lost Planet 3 - Hi Res Movies DLC Steam Store and Retail Key
- 31285, // GRID 2 - Demolition Derby Pack
- 31538, // Prime World - Prime Machine Steam Store and Retail Key
- 32032, // Portal 2 - Perceptual Pack
- 32287, // UntitledApp Steam Store and Retail Key
- 32826, // Farming Simulator 2013 Classics - Free Expansion
- 33444, // Wargame: Airland Battle DLC 2 Steam Store and Retail Key
- 33694, // Grimm DLC 1 - A Boy Learns What Fear Is
- 34503, // Saints Row IV - Thank You Pack
- 35063, // Star Swarm Benchmark
- 36179, // Alan Wake Bonus Materials
- 36472, // Europa Universalis IV: Songs of Yuletide
- 36473, // Crusader Kings II: Songs of Yuletide
- 36561, // Serena
- 38085, // SR4 - Reverse Cosplay Pack
- 38512, // Vanguard Princess Director's Cut
- 38820, // Aura Kingdom - Winter Gift
- 39166, // Heroine's Quest
- 42327, // RP8 - High Res Texture Pack DLC
- 43233, // Nobunaga's Ambition: Souzou - "Teru Kushihashi", "Chiyome Mochiduki" Bushou Data
- 43235, // Nobunaga's Ambition: Souzou - "Motonobu Serada", "Tsuru Oohouri" Bushou Data
- 43237, // Nobunaga's Ambition: Souzou - "Goemon Ishikawa", "Yasuke" Bushou Data
- 43435, // Nobunaga's Ambition: Souzou - Series 30th Anniversary Contents
- 43437, // Nobunaga's Ambition: Souzou - "Nobunaga's Ambition Day"memorial set
- 43991, // Pure Pool� - VooFoo DNA
- 44149, // Ground Pounders - Base High Resolution Pack
- 45773, // Nobunaga's Ambition: Souzou - OdaNobunaga InGame Face CG
- 46109, // X3: Terran Conflict Bonus Package
- 46110, // X3: Albion Prelude Bonus Package
- 47445, // Wargame Red Dragon - DLC 1
- 48578, // DW8XLCE - JAPANESE VOICE OPTION
- 49153, // Wargame Red Dragon - Second Korean War
- 49219, // LA Cops - Exclusive Music Tracks
- 49464, // Fable Anniversary - Modding DLC
- 49599, // FortressCraft Evolved Multiplayer
- 50506, // Dreaming Sarah OST
- 50861, // Free to Play Soundtrack
- 50863, // Half-Life Soundtrack
- 50865, // Half-Life 2 Soundtrack
- 50867, // Half-Life 2: Episode One Soundtrack
- 50869, // Half-Life 2: Episode Two Soundtrack
- 50871, // Portal Soundtrack
- 50873, // Portal 2 Soundtrack
- 51073, // NARUTO SHIPPUDEN: ULTIMATE NINJA STORM REVOLUTION - DLC 2 Naruto / Sasuke / Itachi (Apron) Pack Copy
- 51194, // GRID Autosport - Demoman Derby Pack
- 52530, // OOTP Baseball 15 - 1994 What-If Quickstart
- 53158, // Vertical Drop Heroes - Halloween Theme
- 55134, // Enforcer: Original Soundtrack
- 55504, // Depth - SDK
- 56322, // To the Moon - 2013 Holiday Special
- 58577, // Realms of Arkania: Blade of Destiny - Ogredeath DLC
- 59253, // Vindictus - New User Package
- 59373, // Penumbra: Necrologue
- 60040, // Vulture for Slash'EM
- 60080, // Wargame Red Dragon - Norse Dragons
- 60341, // Fuse - Free Brute Character Pack
- 62216, // PTSD Vol. 2 NPPD Rush - Fan-Made Soundtrack
- 62561, // Night Mysteries: The Amphora Prisoner - Official Soundtrack
- 62868, // 199X (Original Soundtrack)
- 63207, // Time Tracer's DLC Package
- 65284, // Void Destroyer - Mini Sandbox
- 65858, // Skullgirls: Beowulf (no cost)
- 66504, // Tallowmere - Android Version
- 67568, // The Witcher 3: Wild Hunt - Temerian Armor Set
- 67570, // The Witcher 3: Wild Hunt - Beard and Hairstyle Set
- 67572, // The Witcher 3: Wild Hunt - Alternative Look for Yennefer
- 67574, // The Witcher 3: Wild Hunt - Contract: Missing Miners
- 67948, // Starpoint Gemini 2: Origins
- 68420, // Koi-Koi Japan : Koi-Koi Enjoy Pack
- 68905, // The Witcher 3: Wild Hunt - Nilfgaardian Armor Set
- 68907, // The Witcher 3: Wild Hunt - Elite Crossbow Set
- 68997, // Retro Game Crunch Soundtrack
- 69635, // The Witcher 3: Wild Hunt - Fool's Gold
- 69637, // The Witcher 3: Wild Hunt - 'Ballad Heroes' Neutral Gwent Card Set
- 69660, // ACID Music Studio 10.0 - Steam Powered - Loop Content
- 70436, // The Witcher 3: Wild Hunt - New Quest: 'Scavenger Hunt: Wolf School Gear'
- 70438, // The Witcher 3: Wild Hunt - Alternative Look for Triss
- 71206, // FREE Soccer Theme Pack
- 71382, // Farming Simulator 15 - New Holland Loader Pack
- ];
- 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.' );
- var ExecuteRequest = function( )
- {
- while( i < total && ownedPackages[ ( package = freePackages[ i ] ) ] )
- {
- i++;
- loaded++;
- }
- jQuery.ajax(
- {
- type: 'POST',
- dataType: 'text',
- url: '//store.steampowered.com/checkout/addfreelicense',
- data:
- {
- action: 'add_to_cart',
- sessionid: g_sessionID,
- subid: package
- }
- }
- ).always( function( )
- {
- loaded++;
- modal.Dismiss();
- if( loaded >= total )
- {
- ShowAlertDialog( 'All done!', 'Enjoy.' );
- }
- else
- {
- modal = ShowBlockingWaitDialog( 'Executing...',
- 'Loaded ' + loaded + '/' + total + '. Ignore all the errors, let it finish.' );
- i++;
- ExecuteRequest();
- }
- }
- );
- };
- setTimeout( ExecuteRequest, 1500 );
- }());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement