WaybackMachine BlogSpot remove Sensitve Content Warning

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

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==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);
})();