您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hide vote counters on posts and comments (until you place a vote yourself).
- // ==UserScript==
- // @name KBin.social hide vote counters
- // @namespace https://kbin.social/
- // @version 0.1
- // @description Hide vote counters on posts and comments (until you place a vote yourself).
- // @author H2SO4
- // @match https://kbin.social/*
- // @grant none
- // @license Whatever
- // ==/UserScript==
- (function() {
- const upvotes = document.querySelectorAll('span[data-subject-target="favCounter"]');
- const downvotes = document.querySelectorAll('span[data-subject-target="downvoteCounter"]');
- let votes = [];
- votes.push.apply(votes, upvotes);
- votes.push.apply(votes, downvotes);
- for(let i=0;i<votes.length;i++) {
- votes[i].style.display = "none";
- }
- })();