Created
October 13, 2025 15:30
-
-
Save mu88/8a80306657dadce6fe35f942e02be47c to your computer and use it in GitHub Desktop.
Tampermonkey "Remove Ape Paywall Overlay"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Remove Ape Paywall Overlay | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0 | |
// @description Removes the paywall overlay with ID "ape-paywall-overlay" from websites automatically. | |
// @author GitHub Copilot 🤖 | |
// @match *://*/* | |
// @run-at document-end | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
// Function to remove the overlay if it exists | |
function removeOverlay() { | |
const overlay = document.getElementById('ape-paywall-overlay'); | |
if (overlay) { | |
overlay.remove(); | |
console.log('[Tampermonkey] Removed ape-paywall-overlay element'); | |
} | |
} | |
// Try to remove immediately | |
removeOverlay(); | |
// Observe DOM changes in case the overlay appears later | |
const observer = new MutationObserver(() => removeOverlay()); | |
observer.observe(document.body, { childList: true, subtree: true }); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment