Blogspot remove sensitive warning

try remove sensitive content warning in blogspot

Stan na 23-08-2025. Zobacz najnowsza wersja.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name                Blogspot remove sensitive warning
// @namespace           https://greasyfork.org/users/821661
// @match               https://*.blogspot.com/*
// @match               https://www.blogger.com/interstitial/blog*
// @grant               GM_xmlhttpRequest
// @version             1.3
// @author              hdyzen
// @description         try remove sensitive content warning in blogspot
// @license             GPL-3.0-only
// ==/UserScript==

async function exec() {
    const removeInterstitial = () => {
        const iframe = document.querySelector("body > #injected-iframe[src*='/interstitial/']");
        const style = document.querySelector("body > style");
        const links = document.querySelectorAll("a[href]");

        iframe?.remove();
        style?.remove();

        for (const link of links) {
            link.addEventListener("click", e => {
                e.stopImmediatePropagation();
                e.stopPropagation();
            });
        }
    };

    if (!location.search.includes("u=https://")) {
        removeInterstitial();
        return;
    }

    const search = new URLSearchParams(location.search);

    GM_xmlhttpRequest({
        url: search.get("u"),
        responseType: "document",
        headers: {
            "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36",
        },
        onload: e => {
            document.documentElement.innerHTML = e.response.documentElement.innerHTML;
            removeInterstitial();
        },
    });
}
exec();