Deletes all comments on your Steam profile
$J.post('//steamcommunity.com/comment/Profile/render/' + g_steamID + '/-1/', {'count': Number.POSITIVE_INFINITY, 'sessionid': g_sessionID}).then(function(data) {
let requests = [],
comments = $J('<div></div>').append(data.comments_html).find('.commentthread_comment');
comments.each(function() {
let comment_id = $J(this).attr('id').replace('comment_', '')
requests.push($J.post('//steamcommunity.com/comment/Profile/delete/' + g_steamID + '/-1/', {'gidcomment': comment_id, 'sessionid': g_sessionID}))
});
Promise.all(requests).then(function() {
ShowAlertDialog('Comments Deleted', 'All of your comments have been deleted', 'Reload').then(function() {
window.location.reload();
})
})
})