一括削除マイクロブログ(復刻版)

著者:Vayn

リンクします。https://www.zhihu.com/question/23442423/answer/549864289
出典:ほとんど知っている
著者が著作権を保有。商業転載は非商用の転載は、ソースを明記してください、権限の作者に連絡してください。


マイクロブログの私のホームページに、クロームのチェックを右クリックしてコンソールに次のコードを貼り付け
var s = document.createElement('script');
s.setAttribute(
  'src',
  'https://lib.sinaapp.com/js/jquery/2.0.3/jquery-2.0.3.min.js'
);
s.onload = function() {
  setInterval(function() {
    if (!$('a[action-type="feed_list_delete"]')) {
      $('a.next').click();
    } else {
      $('a[action-type="feed_list_delete"]')[0].click();
      $('a[action-type="ok"]')[0].click();
    }

    // scroll bottom let auto load
    $('html, body').animate({ scrollTop: $(document).height() }, 'slow');
    var len = $('div[action-type="feed_list_item"]').length;
    if (len < 5) { $('a[class="page next S_txt1 S_line1"]')[0].click(); }
  }, 800);
};
document.head.appendChild(s);

そして、ファンを削除します。

var s = document.createElement('script');
s.setAttribute(
  'src',
  'https://lib.sinaapp.com/js/jquery/2.0.3/jquery-2.0.3.min.js'
);
s.onload = function() {
  setInterval(function() {
    if (!$('a[action-type="removeFan"]')) {
      $('a.next').click();
    } else {
      $('a[action-type="removeFan"]')[0].click();
       setTimeout(function (){}, 50);
      $('a[action-type="ok"]')[0].click();
    }

    var len = $('li.follow_item').length;
    if (len < 2) {
        $('a[class="page next S_txt1 S_line1"]')[0].click();
    }
  }, 1500);
};
document.head.appendChild(s);

おすすめ

転載: www.cnblogs.com/vocoub/p/11229270.html
おすすめ