Skip to content

Instantly share code, notes, and snippets.

@Overload119
Created April 22, 2016 20:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Overload119/4988cc3ff485b6968b383c877b8fdfd5 to your computer and use it in GitHub Desktop.
Save Overload119/4988cc3ff485b6968b383c877b8fdfd5 to your computer and use it in GitHub Desktop.
var username = 'Sagethedestroyer';
var postsToDelete = [];
$('.m-moot.m-expanded').each(function(idx, el) {
$el = $(el);
if ($el.find('.m-facelink').attr('title') === username) {
postsToDelete.push($el);
}
});
var timer = setInterval(function() {
$el = postsToDelete.pop();
if ($el == null) {
return;
clearInterval(timer);
}
$close = $el.find('.m-action.m-remove');
$close.click();
$('.m-dialog-foot button').last().click();
}, 100);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment