Created
February 28, 2013 07:58
-
-
Save Domon/5055052 to your computer and use it in GitHub Desktop.
A script that removes all Facebook apps.
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
// 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