LoginSignup
4
3

More than 5 years have passed since last update.

Twitterで自分をfollowしてないfollowerをunfollowするJS

Last updated at Posted at 2018-10-11

※動作と動作結果は非保証です。自己責任で使ってください。
TwitterAPIでもAPIを消費をすれば同様のことはできるはずですが、今回はブラウザだけでできます。
日本語では出てこなかったので書きました。

https://twitter.com/following に移動

コンソールを開く
Chrome press ctrl + shift + J
Firefox press ctrl + shift + K
Safari Press ctrl + alt + I

下記スクリプトで画面を一番下までスクロールさせる

setInterval(function() {
 window.scrollTo(0, document.body.scrollHeight);
 }, 2000);

画面のスクロールが終わるのを待ち下記スクリプトを実行
※動作と動作結果は非保証です。自己責任で使ってください。

$('.ProfileCard-content').each(function(){
 var status = $(this).find('.FollowStatus').text();
 var unfollowButton = $(this).find('.user-actions-follow-button');
 if(!status){unfollowButton.click();
 }});

以上です。自分のアカウントはこれでfollow数を調整できました。
※動作と動作結果は非保証です。自己責任で使ってください。

【参考】
https://www.techvows.com/follow-unfollow-all-twitter-followers/

4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3