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
/* go to link: https://www.facebook.com/friends/requests/?fcref=jwl&outgoing=1 */ | |
var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value; | |
var user_id = document.cookie.match(/c_user=(\d+)/)[1]; | |
var list = document.querySelectorAll('.FriendRequestOutgoing:not(.hidden_elem)'); | |
for (var i in list) { | |
if (typeof list[i] == 'object') { | |
var uid = list[i].getAttribute('data-profileid'); | |
var http = new XMLHttpRequest(); |
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
(function() { | |
var fb_dtsg = 'FB_DTSG'; | |
var user_id = document.cookie.match(/c_user=(\d+)/)[1]; | |
var list = document.querySelectorAll('._5l-3 ._1ht5[role="rowheader"]');; | |
for (var i = 0; i < list.length; i++) { | |
var xm = new XMLHttpRequest(); | |
xm.open('POST', 'https://www.facebook.com/ajax/mercury/delete_thread.php', true); | |
xm.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); | |
xm.send('ids[0]=' + list[i].getAttribute("id").replace('row_header_id_user:', '') + '&__user=' + user_id + '&__a=1&__dyn=5V5yAW8-aFoFHgggDxyG8EigmzkqbxqbAKGiABy8Z9LFwxBxC9V8CdwIhE98nwgUaqwHzQ4UJi28y2GAUWUPBKuEjKeCwxxW6oaFVobrCxaFEW2Pz8-cx2q5ocE88C9ADBy8K48hxGbxO7VUgC_Q6J0&__req=35&__be=-1&__pc=PHASED%3ADEFAULT&fb_dtsg=' + fb_dtsg + '&ttstamp=265817085525098109115486778586581695289817881109828188&__rev=2498501'); |