// Fixed on Feb 23 , 2013 by AlexC 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('DONE! www.mikisoft.im'); 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() } //Tutorial on How to use Delete all message on Facebook visit to the following link //http://techofy.blogspot.in/2013/02/how-to-delete-all-facebook-messages.html