Created
April 6, 2018 07:11
-
-
Save matyasfodor/5aa72f70253c96e2a80db80f049dbcfe to your computer and use it in GitHub Desktop.
These are the commands I used to remove the apps added to my facebook. I didn't have time to wrap it up, so use it as an inspiration, but It's likely that it won't work as it is.
This file contains 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 head = document.getElementsByTagName("head")[0]; | |
var script = document.createElement("script"); | |
script.src = "//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"; | |
head.appendChild(script); | |
var a = $('span.rfloat'); | |
a[0].children["delete-link"].click() | |
$('[value="Remove"]').click() | |
var a = $('span.rfloat'); | |
a.forEach(b => { | |
b.children["delete-link"].click(); | |
setTimeout(() => { | |
$('[value="Remove"]').click(); | |
}, 10) | |
}) | |
a[0].children["delete-link"].click() | |
$('[value="Remove"]').click() | |
var head = document.getElementsByTagName("head")[0]; | |
var script = document.createElement("script"); | |
script.src = "//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"; | |
head.appendChild(script); | |
var jq = $; | |
Array.from(jq('.clearfix._ikh._4na3').children).forEach(elem => { | |
elem.querySelector('[id="delete-link"]').click(); | |
}); | |
Array.from(jq('[value="Remove"]')).forEach(b => b.click()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment