Batch Delete Bilibili Following List

A simple method to clear your Bilibili following list.

How to Quickly Unfollow UP Masters on Bilibili?

When you engage in “follow-for-follow,” you might find your feed cluttered with unwanted videos. Or perhaps you accidentally followed a bunch of UP masters when registering a new account.

You then realize that Bilibili doesn’t have a batch unfollow feature, forcing you to click them one by one (how annoying!).

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
var ms = 300; // Pause for 300 milliseconds
var ii = 0;
var xx = $(".be-dropdown-item:contains('取消关注')");
console.log("Following", xx.length, "UP masters on this page!");
tt = setInterval(function(){
  if (0 <= ii && ii < xx.length) {
    xx[ii].click(); // Automatically click {Unfollow}
  } else {
    clearInterval(tt); // Stop operation
    console.log("OK! No more UP masters on this page!");
  }
  ii += 1;
}, ms+ii*10); // Pause milliseconds before the next click, interval increases incrementally

Using Chrome browser as an example:

  1. Press F12.
  2. Go to the Console tab.
  3. Paste the code above.
  4. Press Enter.

This will quickly unfollow all 20 UP masters on the current page.

Press F5 or Ctrl+R to refresh the page, then run the script again to continue unfollowing the rest.

2022-2025做了三年的事情,得到了很多收获也看到了这个世界的另一面。
Built with Hugo
Theme Stack designed by Jimmy