Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!

Delete all message on Facebook working script.

By: snlqandy on Feb 24th, 2013  |  syntax: JavaScript  |  size: 1.32 KB  |  views: 5,481  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. // Fixed on Feb 23 , 2013 by AlexC
  2. 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() }
  3.  
  4. //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