您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
FA enhancement
- // ==UserScript==
- // @name FA gear
- // @namespace https://greasyfork.org/en/scripts/525591-fa-gear
- // @version 0.11
- // @description FA enhancement
- // @author Boni
- // @match https://www.furaffinity.net/*
- // @grant none
- // @license GPL-3.0-or-later
- // @icon https://www.google.com/s2/favicons?sz=64&domain=furaffinity.net
- // ==/UserScript==
- (function() {
- 'use strict';
- window.addEventListener("load", function() {
- document.querySelectorAll(".notifications-by-date").forEach(section => {
- let images = section.querySelectorAll("figure");
- let blockedImages = section.querySelectorAll("img.blocked-content");
- if (images.length === blockedImages.length) {
- // Remove the entire section if all images are blocked
- section.remove();
- } else if (blockedImages.length === 1) {
- // Remove the single blocked image if only one is blocked
- blockedImages[0].closest("figure").remove();
- }
- });
- document.querySelectorAll(".section-body").forEach(section => {
- section.querySelectorAll("figure").forEach(figure => {
- if (figure.querySelector("img.blocked-content")) {
- figure.remove();
- }
- });
- });
- });
- })();