Last active
April 25, 2026 16:20
-
-
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 }); | |
| })(); |
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 Tour Magazin Cleanup | |
| // @namespace http://tampermonkey.net/ | |
| // @version 1.2 | |
| // @description Clean up page | |
| // @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(); | |
| // Remove "Meistgelesene Artikel" zone | |
| const mostRead = document.querySelector('[data-upscore-zone="Meistgelesene Artikel"]'); | |
| if (mostRead) mostRead.remove(); | |
| // Remove app install smart banner | |
| const smartBanner = document.querySelector('.smartbanner'); | |
| if (smartBanner) smartBanner.remove(); | |
| // Remove article rating widget ("Wie gefällt Ihnen dieser Artikel?") | |
| const ratingWidget = document.querySelector('button[aria-label^="Bewertung:"]')?.closest('div.mb-4'); | |
| if (ratingWidget) ratingWidget.remove(); | |
| // Remove shop subscription teaser (targets only the block-site-width containing it) | |
| document.querySelector('.bg-skin-shop-widget')?.closest('.block-site-width')?.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