Skip to content

Instantly share code, notes, and snippets.

@M1ke
Last active March 7, 2018 23:22
Show Gist options
  • Save M1ke/5541224 to your computer and use it in GitHub Desktop.
Save M1ke/5541224 to your computer and use it in GitHub Desktop.
Want to turn off Retweets from all users you're following without clicking each time? This script sorts that, using a timer to avoid your requests being blocked and returning a 403. Scroll to the bottom of your Following list, paste it into Chrome's console (Firefox should work too) and hit enter. It turns off 3 per minute (you could reduce the …
var interval=setInterval(function(){
$('.user-actions.including .retweet-off-text').last().click();
if ($('.user-actions.including .retweet-off-text').length<1) {
clearInterval(interval);
}
},20000);
@gusost
Copy link

gusost commented May 8, 2015

Saw this when I was done with mine...

a=Array.prototype.slice.call(document.querySelectorAll("div.ProfileCard-content div.dropdown"));
a.forEach(function(e) {e.querySelector("button").click(); e.querySelector("li.retweet-off-text button").click(); })

No jQuery. Managed my 114 ppl that I follow without being blocked.

For large lists your solution might be preferred.

@freeload101
Copy link

THANK YOU BOTH !

@derekeder
Copy link

@gusost's script worked for me in Firefox on ~1,200 following

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment