Skip to content

Instantly share code, notes, and snippets.

@Intrepidd
Created October 23, 2011 17:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Intrepidd/1307618 to your computer and use it in GitHub Desktop.
Save Intrepidd/1307618 to your computer and use it in GitHub Desktop.
Facebook delete all apps, quite uggly.
// Assuming you have Jquerified the page
// http://www.learningjquery.com/2009/04/better-stronger-safer-jquerify-bookmarklet
function deleteApp(tab, index) {
tab[index].click();
setTimeout(function() {
$jq("input[name=remove]").click();
setTimeout(function() {
$jq("input[name=ok]").click();
if (tab[index + 1]) {
deleteApp(tab, index + 1);
}
}, 2000);
}, 2000);
}
deleteApp($jq(".fbApplicationsList li .fbSettingsListItemDelete input"), 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment