用chrome打开twitte的喜欢页面,F12打开控制台,在Console中执行以下脚本即可。
setInterval(
function() {
t = $( 'button.ProfileTweet-action--unfavorite' ); // get unfavourite buttons
for ( i = 0; true; i++ ) { // count
if ( i >= t.length ) { // if items remain to unfavourite
window.scrollTo( 0, $( document ).height() ); // scroll to bottom of page - loads more
return
}
$( t[i] ).trigger( 'click' ).remove(); // click and remove button from dom
}
}, 2000
)