您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
to find out how my fans change
当前为
// ==UserScript== // @name CC98查询粉丝的变动 // @namespace http://tampermonkey.net/ // @version v1.3 // @description to find out how my fans change // @author Lay // @match https://www.cc98.org/usercenter/myfans // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== // @license AGPL -3.0 // @grant none // ==/UserScript== (function() { 'use strict'; function fetchFans() { const fansElements = document.querySelectorAll('.user-center-myfans .user-center-myfans-exact'); // 根据实际情况修改选择器 const currentFans = new Set(); fansElements.forEach(element => { currentFans.add(element.textContent.trim()); }); const previousFans = new Set(JSON.parse(localStorage.getItem('fansList') || '[]')); checkForChanges(currentFans, previousFans); // 更新存储的粉丝列表 localStorage.setItem('fansList', JSON.stringify([...currentFans])); } function checkForChanges(currentFans, previousFans) { const addedFans = [...currentFans].filter(fan => !previousFans.has(fan)); const removedFans = [...previousFans].filter(fan => !currentFans.has(fan)); if (addedFans.length > 0) { alert('新增加的粉丝: ' + addedFans.join(', ')); } if (removedFans.length > 0) { alert('减少的粉丝: ' + removedFans.join(', ')); } } // 页面加载时检查粉丝变化 fetchFans(); // 每隔5分钟检查一次(300000毫秒) setInterval(fetchFans, 300000); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址