您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Removes subscribe overlay, text-blurring CSS, and email popup from podcastnotes.org.
// ==UserScript== // @name Podcast Notes Unblocker // @namespace http://tampermonkey.net/ // @version 0.1 // @description Removes subscribe overlay, text-blurring CSS, and email popup from podcastnotes.org. // @author You // @match https://podcastnotes.org/* // @icon https://www.google.com/s2/favicons?sz=64&domain=podcastnotes.org // @grant none // @license MIT // ==/UserScript== // denotes whether there is/was a paywall on the page at one point var payWallExists = false; (function() { 'use strict'; // Your code here... let observer = new MutationObserver(reactToMutation); var domToWatch = document.querySelector('body') observer.observe(domToWatch, { characterDataOldValue: true, subtree: true, childList: true, characterData: true }); })(); function reactToMutation(mutations) { mutations.forEach((mutation) => { let oldValue = mutation.oldValue; let newValue = mutation.target; var payWallElem = document.querySelector('.paywall-overlay') if (oldValue !== newValue) { if(!payWallExists && payWallElem) payWallExists = true // only act if this page was paywalled if(payWallExists) { if(payWallElem) payWallElem.remove() var allNodes = document.querySelectorAll('.post-single-content *') for(var node of allNodes) { node.style['text-shadow'] = 'none' node.style.color = 'black' } let emailOverlay = document.querySelector('.mailing-list-cta-overlay') if(emailOverlay) emailOverlay.remove() } } }); }