Created
April 22, 2016 20:47
-
-
Save Overload119/4988cc3ff485b6968b383c877b8fdfd5 to your computer and use it in GitHub Desktop.
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
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