Skip to content

Instantly share code, notes, and snippets.

@Domon
Created February 28, 2013 07:58
Show Gist options
  • Save Domon/5055052 to your computer and use it in GitHub Desktop.
Save Domon/5055052 to your computer and use it in GitHub Desktop.
A script that removes all Facebook apps.
// Steps:
// 1. Visit https://www.facebook.com/settings?tab=applications.
// 2. Click "Show All Apps".
// 3. Open Console and paste the following code.
var INTERVAL = 1500;
function click_first_x() {
document.querySelectorAll('[title="Remove"]')[0].click();
setTimeout(check_and_remove, INTERVAL);
}
function check_and_remove() {
document.querySelectorAll('[name="delete_app_actions"]')[0].click();
document.querySelectorAll('[value="Remove"]')[0].click();
setTimeout(click_first_x, INTERVAL);
}
click_first_x();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment