Created
August 16, 2014 13:38
-
-
Save retvil/ce4fe9694b93aee8cacf to your computer and use it in GitHub Desktop.
[IOC] Free Steam (Remove All)
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
(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