Skip to content

Instantly share code, notes, and snippets.

@mu88
Created October 13, 2025 15:30
Show Gist options
  • Save mu88/8a80306657dadce6fe35f942e02be47c to your computer and use it in GitHub Desktop.
Save mu88/8a80306657dadce6fe35f942e02be47c to your computer and use it in GitHub Desktop.
Tampermonkey "Remove Ape Paywall Overlay"
// ==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