Retweet all on Twitter

Isn't annoying that your followed just retweet everything they see on their Timelines? All, old tweets, silly tweets or tweets from someone you don't want to read. Well if you want to go beyond the limits, let me introduce the:

  RT'em all.

By dragging this 'button' to your bookmarks, you will have the key to direct unfollows.
Based on Feross Aboukhadijeh´s I Like Everything script that automatically like's every post on the current Facebook page, This retweets all in the timeline you are viewing, so use it carefully.

I did this because I had nothing to do at university and in order to piss off @unmau, now I know he blocked retweets ¬¬

Sources:

Button:
var s = document.getElementById('happyScript');
if(s){
    s.parentNode.removeChild(s);
} 
s = document.createElement('script');
s.setAttribute('src','http://sites.google.com/site/fferegrinostorage/javascript/englishRTemall.js');
s.setAttribute('type','text/javascript');
s.setAttribute('id','happyScript');
document.body.appendChild(s);
void(0);

Script:
/*
 RT'em All.
 Author: Antonio Feregrino Bolaños // @fferegrino
 More: 
*/

var triste = document.getElementsByTagName('a'),
    happy = [],
    halt = false,
 fi = 0,
 accept =[];
    
for (var i = 0; i < triste.length; i++) {
    if (triste[i] && (triste[i].title == 'Retweet')) {
        happy.push(triste[i]);
    }
}

var happyDiv = document.createElement('div');
happyDiv.innerHTML = '
0 of '+happy.length+' items retweeted.
'; document.getElementsByTagName('body')[0].appendChild(happyDiv); function happyFn() { if (halt || !happy || !happy.length) { document.getElementById('happyStatus').innerHTML = 'Done!'; return; } var nouEvent = document.createEvent("MouseEvents"); nouEvent.initMouseEvent("click", true, true, window,0, 0, 0, 0, 0, false, false, false, false, 0, null); happy.pop().dispatchEvent(nouEvent); var countSpan = document.querySelector('#happy span'); countSpan.innerHTML = parseInt(countSpan.innerHTML) + 1; //happy = happy.splice(1); window.setTimeout(function() { aceptaRT(); }, 900); } function aceptaRT(){ var aceptar; var aceptar_1 = document.getElementsByTagName('div'); for(var i = 0; i < aceptar_1.length; i++){ if(aceptar_1[i].getAttribute("class") == "button js-prompt-ok selected"){ accept[0]= (aceptar_1[i]); } } var nouEvent = document.createEvent("MouseEvents"); nouEvent.initMouseEvent("click", true, true, window,0, 0, 0, 0, 0, false, false, false, false, 0, null); accept[0].dispatchEvent(nouEvent); window.setTimeout(function() { happyFn(); }, 1000); } function haltFn() { halt = true; return false; } happyFn();
I just tested on Google Chrome, the best browser but I think it will work on many of them.

P.S. : I'll make one to undo retweets... but not for now

 ¡Saludos! @fferegrino :)

1 comment:

¡Hey, gracias por tu comentario! No seas anónimo, inicia sesión para que te responda más fácilmente.