WaybackMachine BlogSpot remove Sensitve Content Warning

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

  1. // ==UserScript==
  2. // @name WaybackMachine BlogSpot remove Sensitve Content Warning
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.1
  5. // @description Removes the Sensitve Content Warning from Blogspot pages that are saved in the WaybackMachine
  6. // @icon https://upload.wikimedia.org/wikipedia/commons/thumb/7/76/Blogger_icon.svg/800px-Blogger_icon.svg.png
  7. // @author Creepler13
  8. // @match https://web.archive.org/web/*/https://*.blogspot.com/*
  9. // ==/UserScript==
  10.  
  11. (function () {
  12. "use strict";
  13.  
  14. setInterval((e) => {
  15. let iframe = document.getElementById("injected-iframe");
  16. if (iframe) iframe.style.visibility = "hidden";
  17.  
  18. if (document.getElementById("removeAgeRestriction")) return;
  19. let styles = " body * { visibility:visible;} ";
  20. let styleSheet = document.createElement("style");
  21. styleSheet.innerText = styles;
  22. styleSheet.id = "removeAgeRestriction";
  23. document.body.append(styleSheet);
  24. }, 100);
  25. })();