Skip to content

Instantly share code, notes, and snippets.

@mu88
Last active October 24, 2025 12:10
Show Gist options
  • Select an option

  • Save mu88/8a80306657dadce6fe35f942e02be47c to your computer and use it in GitHub Desktop.

Select an option

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 });
})();
// ==UserScript==
// @name Tour Magazin Cleanup
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Remove cmp overlays and unlock scrolling on tour-magazin.de
// @author GitHub Copilot 🤖
// @match https://www.tour-magazin.de/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=tour-magazin.de
// @grant none
// ==/UserScript==
(function() {
'use strict';
function cleanPage() {
// Remove the elements with IDs "cmpbox" and "cmpbox2"
const cmp1 = document.getElementById('cmpbox');
if (cmp1) cmp1.remove();
const cmp2 = document.getElementById('cmpbox2');
if (cmp2) cmp2.remove();
// Fix body overflow
const body = document.querySelector('body.tour-theme.bg-body-light.font-sans.font-normal');
if (body && body.style.overflow === 'hidden') {
body.style.overflow = '';
}
}
// Run once when the DOM is ready
document.addEventListener('DOMContentLoaded', cleanPage);
// Also observe dynamically loaded elements (in case cmpbox appears later)
const observer = new MutationObserver(cleanPage);
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