Last active
August 29, 2015 14:05
-
-
Save retvil/5874e99c8683f6ca4277 to your computer and use it in GitHub Desktop.
[IOC] Free Steam (Remove Game)
This file contains hidden or 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
///Workerd on Script: lunboks | |
///Editor: Nod33Eset | |
///Tester: | |
(function () { | |
var NUKE_REGEX = /\b(?:trailer|teaser|demo|cinematic|pegi|esrb)\b/i; | |
var PACKAGE_ID_REGEX = /javascript:\s*RemoveFreeLicense\s*\(\s*(\d+)/; | |
var REMOVE_LICENSE_API = "/account/removelicense"; | |
var RUN_ON_PAGE = "https://store.steampowered.com/account/"; | |
if (location.href !== RUN_ON_PAGE) { | |
if (confirm("You're not on your licenses page. Go now?")) { | |
location.assign(RUN_ON_PAGE); | |
} | |
return; | |
} | |
var idsToRemove = [ | |
2577, //Altitude | |
12276, //Dungeon Defenders Dev Kit | |
13792, //Altitude_Retail | |
20783, //TrackMania Nations Forever | |
21126, //DIVO | |
21128, //MilitAnt | |
21129, //Plutonic Repulse | |
21131, //Blackwells Asylum | |
21175, //RPG Maker VX Ace Lite | |
21222, //TorqueL prototype 2013.03 @ E3 | |
21246, //Defiance Free Trial | |
21289, //Bloodline Champions | |
21290, //Dragon Nest | |
21291, //Americas Army 3 | |
21292, //Global Agenda | |
21293, //Tribes: Ascend | |
21294, //Forsaken World | |
21295, //Rusty Hearts | |
21296, //CrimeCraft GangWars | |
21297, //Stronghold Kingdoms | |
21298, //Tactical Intervention | |
21300, //Spiral Knights | |
21301, //Puzzle Pirates | |
21302, //A.V.A - Alliance of Valiant Arms | |
21303, //Super Monday Night Combat | |
21304, //Age of Empires Online | |
21305, //Pandora Saga: Weapons of Balance | |
21306, //War Inc. Battlezone | |
21307, //Memoir 44 Online | |
21308, //MicroVolts Surge | |
21309, //Brawl Busters | |
21310, //Neverwinter | |
21311, //APB Reloaded | |
21312, //Fallen Earth | |
21313, //World of Battles | |
21314, //Realm of the Mad God | |
21315, //Magic: The Gathering ? Tactics | |
21316, //PoxNora | |
21317, //EverQuest II | |
21318, //Americas Army: Proving Grounds Beta | |
21319, //EverQuest Free-to-Play | |
21320, //Gotham City Impostors: Free To Play | |
21321, //Archeblade | |
21322, //Moon Breakers | |
21323, //Loadout | |
21324, //War of the Immortals | |
21325, //RaceRoom Racing Experience | |
21326, //Bullet Run | |
21327, //Star Conflict | |
21328, //Vindictus | |
21329, //Combat Arms | |
21330, //Mabinogi | |
21331, //Dungeon Fighter Online | |
21332, //Atlantica | |
21333, //Arctic Combat | |
21334, //C9 | |
21335, //The Lord of the Rings Online? | |
21336, //Super Crate Box | |
21337, //Dwarfs F2P | |
21338, //ROSE Online | |
21339, //Dungeon Party | |
21340, //Dungeonland | |
21341, //PlanetSide 2 | |
21342, //Frontline Tactics | |
21343, //The Banner Saga: Factions | |
21344, //Football Superstars | |
21345, //District 187 | |
21346, //Champions of Regnum | |
21347, //Uncharted Waters Online | |
21348, //RIDGE RACER? Driftopia | |
21349, //Construct 2 Free | |
21350, //Warframe | |
21351, //Ragnarok Online 2 | |
21352, //March of War | |
21353, //War Thunder | |
21354, //Shadow Warrior Classic (1997) | |
21355, //Arcane Saga Online | |
21356, //Pinball Arcade | |
21357, //Path of Exile | |
21358, //Panzar | |
21359, //Tom Clancys Ghost Recon Phantoms - NA | |
21360, //Dragon Nest Europe | |
21361, //Dragons and Titans | |
21362, //Tom Clancys Ghost Recon Phantoms - EU | |
21363, //Fiesta Online | |
21364, //Thinking with Time Machine | |
21365, //Fiesta Online NA | |
21367, //Peggle Extreme | |
21372, //Mightier | |
21373, //Coil | |
21375, //Moonbase Alpha | |
21376, //RIFT | |
21380, //Saints Row: The Third - Initiation Station | |
21390, //Arma 2: Free | |
21391, //Dungeons & Dragons Online? | |
21392, //Blacklight: Retribution | |
21395, //Gear Up | |
21396, //Ragnarok | |
21397, //Age of Conan: Unchained - EU version | |
21398, //Age of Conan: Unchained - US version | |
21399, //Smashmuck Champions | |
21401, //RaiderZ | |
21402, //iPi Mocap Studio 2 | |
21403, //iPi Recorder 2 | |
21404, //Wizardry Online | |
21405, //Renaissance Heroes | |
21406, //Forge | |
21407, //Cry of Fear | |
21410, //Dragons Prophet | |
21411, //SolForge | |
21412, //Driver Fusion | |
21413, //Ascend: Hand of Kul | |
21414, //Marvel Puzzle Quest | |
21415, //King?s Bounty: Legions | |
21416, //Elsword | |
21417, //Soldier Front 2 | |
21418, //Solstice Arena | |
21419, //Ohm Studio | |
21420, //Saints Row IV Inauguration Station | |
21421, //GunZ 2: The Second Duel | |
21423, //Toribash | |
21425, //8BitMMO | |
21426, //The Plan | |
21427, //Ragnarok Online - Free to Play - European Version | |
21428, //Battle Nations | |
21429, //Dragons Prophet (EU) | |
21430, //World of Guns: Gun Disassembly | |
21431, //TrackMania2 Valley Demo | |
21432, //TrackMania2 Canyon Demo | |
21433, //Fistful of Frags | |
21434, //Cannons Lasers Rockets | |
21435, //City of Steam: Arkadia | |
21436, //Conquest of Champions | |
21437, //Dethroned! | |
21438, //HAWKEN | |
21439, //Serena | |
21440, //Subnautica Terrain Test | |
21441, //You Have to Win the Game | |
21442, //Evolution RTS | |
31606, //Magic 2015 Demo Steam Store and Retail Key | |
32257, //Max Gentlemen | |
33980, //World of Guns | |
34295, //La Tale | |
34771, //CLR: Cannons Lasers Rockets | |
34870, //Anarchy Arcade | |
34871, //Anarchy Arcade Tester | |
35341, //Steam Sub 35341 | |
35650, //EVGA Precision X | |
35848, //Depression Quest | |
35984, //MODO Sample Content | |
36561, //Serena | |
37156, //Steam Sub 37156 | |
39166, //Heroine's Quest | |
39544, //Arena: Cyber Evolution | |
39863, //Steam Sub 39863 | |
40311, //NASCAR '14 DLC6 | |
41518, //GAR Default store package | |
42551, //Overcast - Walden and the Werewolf - Soundtrack | |
42558, //Royal Quest | |
42583, //Darkwind: War on Wheels | |
42889, //Dusty Revenge - Almost Human | |
43316, //Only If | |
43681, //The Graveyard Trial (Free) | |
43716, //Face of Mankind | |
43770, //Steam Sub 43770 | |
43902, //Steam Sub 43902 | |
43922, //Steam Sub 43922 | |
43949, //Steam Sub 43949 | |
43977, //Steam Sub 43977 | |
44068, //Steam Sub 44068 | |
44226, //Robocraft | |
44379, //Steam Sub 44379 | |
44411, //Steam Sub 44411 | |
44986, //Grand Chase | |
45004, //Steam Sub 45004 | |
45060, //Steam Sub 45060 | |
45117, //Quantum Rush Online | |
45123, //Unturned | |
45214, //Battle Islands | |
45217, //Cakewalk Loop Manager | |
45504, //Steam Sub 45504 | |
45660, //Defiance | |
45682, //Steam Sub 45682 | |
45688, //Steam Sub 45688 | |
45696, //Steam Sub 45696 | |
45705, //Floating Point | |
45767, //Velvet Sundown | |
45800, //CRYENGINE - Sample Assets | |
45862, //Steam Sub 45862 | |
45931, //Steam Sub 45931 | |
45946, //Reversion: The Escape | |
46138, //March of War | |
46373, //Steam Sub 46373 | |
46397, //Steam Sub 46397 | |
46481, //Firefall | |
46682, //Star Trek Online | |
46693, //OMSI 2 - AI-Articulated Bus for Vienna | |
46800, //Steam Sub 46800 | |
46821, //Steam Sub 46821 | |
46835, //Steam Sub 46835 | |
46948, //Steam Sub 46948 | |
47043, //Steam Sub 47043 | |
47144, //Warface | |
47180, //Steam Sub 47180 | |
47182, //NEOTOKYO (NEOTOKYO°) | |
47219, //Steam Sub 47219 | |
47235, //The Expendabros | |
47267, //Champions Online - Free for All | |
47277, //Steam Sub 47277 | |
47333, //Aura Kingdom | |
47466, //Heroes & Generals | |
47487, //Steam Sub 47487 | |
47514, //Sunrider | |
47565, //Steam Sub 47565 | |
47669, //Xam | |
47670, //Tom Clancy's Ghost Recon Phantoms - EU: Assault Starter Pack FREE | |
47673, //Tom Clancy's Ghost Recon Phantoms - NA: Assault Starter Pack FREE | |
47674, //Tom Clancy's Ghost Recon Phantoms - EU: Support Starter Pack FREE | |
47675, //Tom Clancy's Ghost Recon Phantoms - NA: Support Starter Pack FREE | |
47676, //Tom Clancy's Ghost Recon Phantoms - EU: Recon Starter Pack FREE | |
47677, //Tom Clancy's Ghost Recon Phantoms - NA: Recon Starter Pack FREE | |
47748, //The Great War 1918 for Beta Testing | |
47749, //The Great War 1918 | |
47709, //The Forgotten Ones | |
47850, //Steam Sub 47850 | |
47936, //Steam Sub 47936 | |
47955, //Steam Sub 47955 | |
47991, //Steam Sub 47991 | |
48085, //Steam Sub 48085 | |
48134, //Dizzel | |
48316, //Dead Island Epidemic Free Access | |
48322, //Steam Sub 48322 | |
48328, //Steam Sub 48328 | |
48402, //Steam Sub 48402 | |
48538, //Steam Sub 48538 | |
48675, //Steam Sub 48675 | |
48709, //Runers Demo | |
48727, //Steam Sub 48727 | |
48771, //Steam Sub 48771 | |
48803, //Steam Sub 48803 | |
48900, //Steam Sub 48900 | |
48901, //Nosgoth Base Game Default Package | |
48909, //Marvel Heroes | |
48958, //Steam Sub 48958 | |
48959, //Saira | |
48998, //Amazing World | |
49005, //Steam Sub 49005 | |
49027, //Rise of Incarnates Beta | |
49105, //Steam Sub 49105 | |
49110, //Steam Sub 49110 | |
49162, //Steam Sub 49162 | |
49168, //Steam Sub 49168 | |
49297, //Steam Sub 49297 | |
49298, //Team Fortress 2 - Free On-Demand | |
49307, //Dota 2 - Free On-Demand | |
49315, //Steam Sub 49315 | |
49355, //Steam Sub 49355 | |
49388, //Steam Sub 49388 | |
49391, //Steam Sub 49391 | |
49394, //Steam Sub 49394 | |
49410, //DRAKERZ-Confrontation | |
49411, //Age of Wushu | |
49944, //Famaze | |
42949, //Famaze | |
50431, //Altitude | |
6328, //ProtoGalaxy | |
]; | |
var rows; | |
var licensesTable = document.getElementById("licenses"); | |
var packageId; | |
if (licensesTable && window.g_sessionID) { | |
licensesTable = licensesTable.getElementsByClassName("account_table")[0]; | |
rows = licensesTable.rows; | |
for (var i = 0, l = rows.length; i < l; i++) { | |
if (NUKE_REGEX.test(rows[i].cells[0].textContent)) { | |
packageId = PACKAGE_ID_REGEX.exec(rows[i].cells[1].innerHTML); | |
if (packageId !== null) { | |
idsToRemove.push(packageId[1]); | |
} | |
} | |
} | |
function removePackageAndQueueNext(packages, index) { | |
if (index >= packages.length) { | |
console.log("Packages Removed."); | |
return; // done | |
} | |
var parameters = "?sessionid=" + encodeURIComponent(g_sessionID) + "&packageid=" + encodeURIComponent(packages[index]); | |
var xhr = new XMLHttpRequest(); | |
xhr.open("HEAD", REMOVE_LICENSE_API + parameters, true); | |
xhr.onreadystatechange = function () { | |
if (this.readyState === 4) { | |
console.log("Removed Package %d/%d", index + 1, packages.length); | |
removePackageAndQueueNext(packages, index + 1); | |
} | |
}; | |
xhr.send(); | |
} | |
if (idsToRemove.length > 0) { | |
removePackageAndQueueNext(idsToRemove, 0); | |
} | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment