Skip to content

Instantly share code, notes, and snippets.

@k-kinzal
Created January 10, 2014 14:49
Show Gist options
  • Save k-kinzal/8355616 to your computer and use it in GitHub Desktop.
Save k-kinzal/8355616 to your computer and use it in GitHub Desktop.
(function remove(aid) {
(function fn() {
$('#_timeLine').scrollTop(0);
var $elements = $('div[id^="_messageId"]').find('img[data-aid="'+aid+'"]').parent().parent().parent();
$elements.each(function(index, element) {
console.log( { cmd: 'delete_chat', myid: aid, chat_id: $(element).data('mid'), _t: ACCESS_TOKEN});
$.get("gateway.php", { cmd: 'delete_chat', myid: aid, chat_id: $(element).data('mid'), _t: ACCESS_TOKEN});
});
setTimeout(fn, 1000);
})();
})(386114);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment