-
-
Save minhphuc429/1ba70175ed24b81ecff00f99769cd5cf to your computer and use it in GitHub Desktop.
Xóa Inbox trên www.facebook.com/messages
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
(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'); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment