您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Always enable the "filter by user" option
// ==UserScript== // @name Always Filterable // @description Always enable the "filter by user" option // @match *://www.uscardforum.com/* // @namespace mr06cpp // @version 1.4 // @license MIT // ==/UserScript== (function() { const init = () => { console.log("Initializing Always Filterable plugin"); const I18n = require("discourse-i18n").default; const UserCardContents = require("discourse/components/user-card-contents").default; UserCardContents.reopen({ get filterPostsLabel() { if (!this.get("topicPostCount")) { return "话题中的帖子"; } return I18n.t("topic.filter_to", { username: this.get("username"), count: this.get("topicPostCount"), }); }, enoughPostsForFiltering: true, }); _ = new UserCardContents(); }; init(); })();