WaybackMachine BlogSpot remove Sensitve Content Warning

Removes the Sensitve Content Warning from Blogspot pages that are saved in the WaybackMachine

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         WaybackMachine BlogSpot remove Sensitve Content Warning
// @namespace    http://tampermonkey.net/
// @version      1.1
// @description  Removes the Sensitve Content Warning from Blogspot pages that are saved in the WaybackMachine
// @icon         https://upload.wikimedia.org/wikipedia/commons/thumb/7/76/Blogger_icon.svg/800px-Blogger_icon.svg.png
// @author       Creepler13
// @match        https://web.archive.org/web/*/https://*.blogspot.com/*
// ==/UserScript==

(function () {
    "use strict";

    setInterval((e) => {
        let iframe = document.getElementById("injected-iframe");
        if (iframe) iframe.style.visibility = "hidden";

        if (document.getElementById("removeAgeRestriction")) return;
        let styles = " body * {  visibility:visible;} ";
        let styleSheet = document.createElement("style");
        styleSheet.innerText = styles;
        styleSheet.id = "removeAgeRestriction";
        document.body.append(styleSheet);
    }, 100);
})();