Last active
July 11, 2019 13:30
-
-
Save attentive/7ea113438ba7e01eb98ea01f13c80f99 to your computer and use it in GitHub Desktop.
Unlike tweets from the Twitter Likes page, via JavaScript in console
This file contains 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
// 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