Skip to content

Instantly share code, notes, and snippets.

@retvil
Created August 16, 2014 13:38
Show Gist options
  • Save retvil/ce4fe9694b93aee8cacf to your computer and use it in GitHub Desktop.
Save retvil/ce4fe9694b93aee8cacf to your computer and use it in GitHub Desktop.
[IOC] Free Steam (Remove All)
(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;
}
jQuery( '.account_table a' ).each( function( i, el )
{
var match = el.href.match( /javascript:RemoveFreeLicense\( ([0-9]+), '/ );
if( match !== null )
{
console.log( 'Removing ' + match[ 1 ] );
jQuery.ajax(
{
url: 'https://store.steampowered.com/account/removelicense',
type: 'POST',
data:
{
sessionid: g_sessionID,
packageid: match[ 1 ]
}
}
);
}
} );
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment