WaybackMachine DeviantArt remove mature blur (kind of)

Removes the mature blur on DeviantArt posts saved in the WaybackMachine. Sadly the image wont be at full quality, because it only archives the thumbnails of mature posts

目前为 2022-07-26 提交的版本。查看 最新版本

// ==UserScript==
// @name         WaybackMachine DeviantArt remove mature blur (kind of)
// @version      1.1
// @description  Removes the mature blur on DeviantArt posts saved in the WaybackMachine. Sadly the image wont be at full quality, because it only archives the thumbnails of mature posts
// @author       Creepler13
// @match        https://web.archive.org/web/*/https://www.deviantart.com/*/art/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=archive.org
// @namespace http://tampermonkey.net/
// ==/UserScript==

(function () {
    "use strict";

    setInterval((e) => {
        let imageDiv = document.querySelector('div[style^="background-image"]');
        if (!imageDiv) return;
        imageDiv.className = imageDiv.className.split(" ")[0];
        for (let e of imageDiv.parentElement.parentElement.childNodes) {
            if (e != imageDiv.parentElement) {
                e.remove();
                let styles = " div::before {  display:none;} ";
                let styleSheet = document.createElement("style");
                styleSheet.innerText = styles;
                styleSheet.id = "removeAgeRestriction";
                document.body.append(styleSheet);
            }
        }
    }, 100);
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址