您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Using New Reddit Search is handy, but doesn't show already joined subs as any differently to non-joined subs, which I want to more easily distinguish, hence this script.
当前为
// ==UserScript== // @name Highlight Joined Subs differently in search results on New Reddit // @namespace http://tampermonkey.net/ // @version 2024-05-29 // @description Using New Reddit Search is handy, but doesn't show already joined subs as any differently to non-joined subs, which I want to more easily distinguish, hence this script. // @author You // @match https://new.reddit.com/search/* // @icon https://www.google.com/s2/favicons?sz=64&domain=reddit.com // @grant none // ==/UserScript== function applyHighlighting() { var entries = document.querySelectorAll('div[data-testid*="communities-list"]>div>div:not([style*="maroon"])'); for(var entry of entries) { if(entry.querySelector('button')?.innerHTML.includes("Joined")) { entry.style.backgroundColor="maroon"; } } } (function() { 'use strict'; setInterval(applyHighlighting,1000); })();