您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Blur thumbnail images for NSFW-tagged posts on old.reddit.com
// ==UserScript== // @name Reddit blur NSFW 😅 // @namespace http://tampermonkey.net/ // @version 1.0 // @description Blur thumbnail images for NSFW-tagged posts on old.reddit.com // @icon https://www.redditstatic.com/desktop2x/img/favicon/android-icon-192x192.png // @author Agreasyforkuser // @match https://old.reddit.com/* // @grant none // ==/UserScript== (function() { 'use strict'; // Function to blur NSFW thumbnails function blurNSFWThumbnails() { const nsfwPosts = document.querySelectorAll('.nsfw-stamp'); nsfwPosts.forEach(nsfwStamp => { const thumbnail = nsfwStamp.closest('.search-result, .link').querySelector('.thumbnail img'); if (thumbnail) { thumbnail.style.filter = 'blur(5px)'; } }); } // Blur NSFW thumbnails on initial page load blurNSFWThumbnails(); // Observe changes in the DOM and blur NSFW thumbnails dynamically const observer = new MutationObserver(() => blurNSFWThumbnails()); const config = { childList: true, subtree: true }; observer.observe(document.body, config); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址