Finding Total Number of Windows Store Downloads on the Dev Center Dashboard Page

Just hacked this JavaScript together to calculate the total number of downloads of Windows Store apps.

var totalDownloads = 0;

$("span:contains('Downloads')").siblings().each(function( index ) {
    var noCommas = $( this ).text().replace(',','');
    totalDownloads += parseInt(noCommas);
});

console.log(totalDownloads);

Just go to your Dashboard in your Windows Dev Center and open your browsers developer tools and paste it into the JavaScript console.

I’m sure there’s nicer looking JavaScript to do this!

Pingbacks and trackbacks (1)+

Add comment

Loading