FA gear

FA enhancement

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name         FA gear
// @namespace    https://greatest.deepsurf.us/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();
                }
            });
        });
    });
})();