Skip to content

Instantly share code, notes, and snippets.

@davidglezz
Last active January 4, 2016 05:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidglezz/8577409 to your computer and use it in GitHub Desktop.
Save davidglezz/8577409 to your computer and use it in GitHub Desktop.
Tuenti Comment Auto Delete Script :: Script que automatiza el proceso de eliminación de comentarios del tablon. ¿Como se usa? Sitúate en la pagina de tu perfil, Pulsa F12 dirígete a la pestaña consola, pega el script y pulsa "Enter". Ahora no toque nada, los comentarios se irán borrando automáticamente. Probado con Google Chrome 33 y Tuenti 2014…
var intervalo = null;
function DeleteCommentInterval()
{
try {
var coment = document.querySelector("#wallpost-list .itm-actions-trans button.action")
if (coment == null)
{
clearInterval(intervalo);
alert("Terminado");
return;
}
coment.click();
document.querySelector("button.action.act-L.act-submit.acceptAction").click();
} catch(e) {
console.log("ERROR: " + e);
}
}
//Intervalo de ejecucion
intervalo = setInterval(DeleteCommentInterval, 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment