How to automatically “like” Twitter tweets with JavaScript helper console code
问题 I am trying to search for a term in Twitter, and then "like" the tweets that come up, using JavaScript code in the console. I tried making a class substitution into this working facebook code for auto-inviting users to like your page: var inputs = document.querySelectorAll('a._42ft._4jy0._4jy3._517h'); for(var i=1; i<inputs.length;i++) { inputs[i].click(); } When I inspect the heart icon used by Twitter for liking a tweet, i see <button class="ProfileTweet-actionButton js-actionButton js