您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
快速取消关注的哔哩哔哩up主
// ==UserScript== // @name 哔哩哔哩自动取消关注 // @namespace http://tampermonkey.net/ // @version 0.1 // @description 快速取消关注的哔哩哔哩up主 // @author Leenus // @match https://space.bilibili.com/*/fans/follow* // @icon https://www.google.com/s2/favicons?sz=64&domain=bilibili.com // @grant none // @license MIT // ==/UserScript== (function () { 'use strict'; // Your code here... addEventListener("DOMContentLoaded", (event) => { const ops = document.querySelector(".follow-main") console.log("fuckyou", ops) }); const timer = setInterval(() => { const ops = document.querySelectorAll("#page-follows > div > div.follow-main > div.follow-content.section > div.content > ul.relation-list > li > div.content > div > div.be-dropdown.fans-action-btn.fans-action-follow > ul > li:nth-child(2)") console.log("fuckyou", ops) console.log("fuckyou", ops[0]) if (ops) { window.ops = ops clearInterval(timer) } }, 50) let index = 0 const timer1 = setInterval(() => { if (window.ops) { if (index < window.ops.length) { window.ops[index].click() index += 1 } else { clearInterval(timer1) } } }, 150) })();