您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
try remove sensitive content warning in blogspot
// ==UserScript== // @name Blogspot remove sensitive warning // @namespace https://greasyfork.org/users/821661 // @match https://*.blogspot.com/* // @match https://www.blogger.com/interstitial/blog* // @require https://update.greasyfork.org/scripts/526417/1534658/USToolkit.js // @grant GM_xmlhttpRequest // @version 1.2 // @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();