MikiSoft

Remove for everyone all messages from a current conversation in Messenger (updated, 29.12.2020.)

Aug 16th, 2020 (edited)
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 1.55 KB | None | 0 0
  1. // Copy everything from official JQuery script (https://code.jquery.com/jquery-3.5.1.slim.min.js), paste it in developer console (open it up with right click on page and "Inspect element") and hit Enter, thereafter you can execute the following:
  2. // Warning: Do not hover over your messages with cursor during the execution of this script!
  3.  
  4. function r() {
  5.     $('.buofh1pr.j83agx80.eg9m0zos.ni8dbmo4.cbu4d94t.gok29vw1').scrollTop(0)
  6.     setTimeout(function w(){
  7.         if ($('.r7fvqmod.ee40wjg4.ega7oslk.stwyh623.pf5603km.ev399l9o.lzcic4wl').length) setTimeout(w, 500); else f()
  8.     }, 1500)
  9. }
  10. var f = function () {
  11.     do {
  12.         var o = o ? o.parent().parent().parent().parent().prevAll() : $(document)
  13.         o = o.find('.pfnyh3mw.ewlkfwdl.j83agx80.bp9cbjyn.qnrpqo6b.jxrgncrl')
  14.         if (!o.length) return !$('.aodizinl.d1544ag0.osnr6wyh.tw6a2znq').length ? r() : false
  15.     } while (o.last().prev().find('.erlsw9ld.fmqa7x8m.qv66sw1b').length);
  16.     o.last()[0].scrollIntoView()
  17.     o.last()[0].dispatchEvent(new MouseEvent('mouseover', {bubbles: true}))
  18.     setTimeout(function (){
  19.         var m = $('.mkd47r93.rgmg9uty.j83agx80.rl25f0pe .p1ueia1e.pgctjfs5.l8rlqa9s.sh06z9xi.i2p6rm4e')
  20.         o.last()[0].dispatchEvent(new MouseEvent('mouseout', {bubbles: true}))
  21.         if (m.length === 1) return setTimeout(f, 200)
  22.         m.last().click()
  23.         setTimeout(function (){
  24.             $('.l9j0dhe7.ama3r5zh > div > div > div > div:first').click()
  25.             setTimeout(function () {
  26.                 $('.ll8tlv6m.j83agx80.taijpn5t.hzruof5a > div > div:last > div > div:first > div:first').click()
  27.                 setTimeout(f, 1500)
  28.             }, 200)
  29.         }, 100)
  30.     }, 100)
  31. }
  32. f()
Add Comment
Please, Sign In to add comment