Skip to content

Instantly share code, notes, and snippets.

@attentive
Last active July 11, 2019 13:30
Show Gist options
  • Save attentive/7ea113438ba7e01eb98ea01f13c80f99 to your computer and use it in GitHub Desktop.
Save attentive/7ea113438ba7e01eb98ea01f13c80f99 to your computer and use it in GitHub Desktop.
Unlike tweets from the Twitter Likes page, via JavaScript in console
// See https://www.quora.com/How-do-I-bulk-delete-likes-on-Twitter
inter = setInterval(() => {
$("html, body").animate({
scrollTop: $(document).height()-$(window).height(),
complete: setTimeout(() => {$('.ProfileTweet-action--unfavorite').click().remove()}, 1000)
})
if($('.has-more-items').length == 0) {
clearInterval(inter)
}
}, 3000)
// clearInterval(inter) to stop the timer on the scroll-and-unfavourite operation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment