Empty your Facebook inbox at once

facebook-messages

Yes, most of the Facebook users are tired of the new Facebook inbox view and the changes that have been brought to it. So, here we bring to you a tutorial to help you delete all your inbox messages at once.

1.Create a new bookmark.
a) Chrome users: Ctrl+D, then choose ‘Edit’ from the popup.
b) Firefox users: Ctrl+Shit+B, then right click on ‘Bookmarks Toolbar’ and select new bookmark.

2. Enter any name for the bookmark, according to your own convenience and enter the following URL:

javascript:var elems = document.getElementsByTagName(‘div’), i ; for (i in elems) { if (elems[i].className.indexOf(‘-cx-PRIVATE-wmThreadlistRow__threadRowContent’) > -1 || elems[i].className.indexOf(‘_l4’) > -1 || elems[i].className.indexOf(‘_l2’) > -1) { if (typeof elems[i].click != ‘undefined’) { var lo = i; if (elems[i].className.indexOf(‘-cx-PRIVATE-wmThreadlistRow__threadRowContent’) > -1) { var txt = ‘-cx-PRIVATE-wmThreadlistRow__threadRowContent’ } else if (elems[i].className.indexOf(‘_l2’) > -1) { var txt = ‘_l2’ } else { var txt = ‘_l4’ } break } } } elems[lo].click(); if (typeof document.getElementsByName(‘yes’)[0] != ‘undefined’) { document.getElementsByName(‘yes’)[0].click() } lol(); while (elems[lo].className.indexOf(txt) > -1) { elems[lo].click(); lol() } alert(‘CONGRATS! www.virtuaniz.com’); function lol() { var elems = document.getElementsByTagName(‘a’), i; var a = 0; for (i in elems) { if (elems[i].innerHTML.indexOf(‘itemLabel fsm’) > -1) { a = a + 1; if (elems[i].innerHTML.indexOf(‘Delete Conversation…’) > -1) { var lo1 = i; break } } } elems[lo1].click(); document.getElementsByName(‘delete_conversation’)[0].click() }

Hit ‘Create’.

3. Open your Facebook inbox, http://www.facebook.com/messages/

NOTE: Please make sure that all the messages in the inbox will be deleted permanently & can’t be recovered.

4. Now, click on the Bookmark that you created. Done!

I would like to thank Aditya Dhawan for his contribution to the script that has been used in this tutorial.

Karan Uppal

Karan Uppal is the Editor-in-Chief for Virtuaniz. He is currently a bachelor student of Computer Science at Bangalore and is working with a few start-ups. Karan is a keen learner and loves to travel. He loves reviewing gadgets and claims them to hold an important part in his life. Follow him at @freezethinker to get his updates.

Loading Facebook Comments ...
Loading Disqus Comments ...