Sleazy Fork is available in English.

CivitAi Auto Show NSFW

Automatically un-blur's CivitAi NSFW posts

질문, 리뷰하거나, 이 스크립트를 신고하세요.
// ==UserScript==
// @name         CivitAi Auto Show NSFW
// @namespace    http://irisapp.ca/
// @version      2.2
// @description  Automatically un-blur's CivitAi NSFW posts
// @author       https://github.com/IrisV3rm
// @match        *civitai.com/*
// @icon         https://civitai.com/favicon.ico
// @grant        none
// @run-at       document-end
// @license MIT
// ==/UserScript==

(function() {
    'use strict';
    function unBlur() {
        // For main browsing
        document.querySelectorAll('.tabler-icon.tabler-icon-eye:not(.tabler-icon-eye-off,mantine-Badge-leftSection)').forEach(element => {
            const parentElementData = element.parentElement;
            if (parentElementData) {
                if (parentElementData.className.includes("mantine-Badge-leftSection")) return;
                if (element.attributes["stroke-width"].value != 2.5) return;
                parentElementData.click();
            }
        });
        // Image viewing
        document.querySelectorAll('.mantine-Button-label').forEach(element => {
            if (element.innerHTML == "Show") {
                const buttonElement = element.parentElement.parentElement;
                if (buttonElement) {
                    buttonElement.click();
                }
            }
        });
    }
    new MutationObserver(unBlur).observe(document.body, { childList: true, subtree: true, attributes: true});
    unBlur();
})();