您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
restore subscribers counter on reddit
当前为
// ==UserScript== // @name Reddit - Restore subscribers counter // @namespace https://gf.qytechs.cn/users/821661 // @version 1.0.1 // @description restore subscribers counter on reddit // @author hdyzen // @match https://www.reddit.com/* // @icon https://www.google.com/s2/favicons?domain=www.reddit.com/&sz=64 // @grant none // @license GPL-3.0-only // ==/UserScript== const observer = new MutationObserver(() => { const node = document.querySelector("shreddit-subreddit-header:not([subscribers])"); if (!node) return; const membersCount = document.querySelector("#subgrid-container div.xs\\:hidden > :nth-child(1) [number]")?.getAttribute("number"); const onlineCount = document.querySelector("#subgrid-container div.xs\\:hidden > :nth-child(2) [number]")?.getAttribute("number"); node.setAttribute("subscribers", membersCount); node.setAttribute("active", onlineCount); node.removeAttribute("activity-indicators-enabled"); }); observer.observe(document.body, { childList: true });
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址