Last active
January 4, 2016 05:49
-
-
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…
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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