Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

202
Vistas
How to mass delete facebook messages?

Trying to figure out a way to mass delete facebook messages any help appreciated. Thanks..

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

So there is no clean way that I have found to do this, so I wrote something that works... USE AT YOUR OWN RISK!!!

I needed to mass delete old messages and this does the trick.

Go to messenger.com and login.

hit f12 to open dev tools.

Paste the following in your browser:

function getElementsByText(str, tag = 'a') {
  return Array.prototype.slice.call(document.getElementsByTagName(tag)).filter(el => el.textContent.trim() === str.trim());
}

function doIt(){

    getElementsByText = function getElementsByText(str, tag = 'a') {
      return Array.prototype.slice.call(document.getElementsByTagName(tag)).filter(el => el.textContent.trim() === str.trim());
    }

    document.querySelectorAll('[aria-label="Menu"]')[0].click();

    setTimeout(function(){
      getElementsByText('Delete chat', 'div')[0].click();
    },500);

    setTimeout(function(){
      this.getElementsByText('Delete chat', 'span')[2].click();
    },1000);

}

Then paste this...

var myInt = setInterval(function(){ doIt() }, 500));

This will start running an interval and deleting messages, you can watch it in action!

If you want to stop, refresh the page or

clearInterval(doIt);
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda