Last active
July 29, 2026 08: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 Heise Cleanup | |
| // @namespace http://tampermonkey.net/ | |
| // @version 1.0 | |
| // @description Clean up page | |
| // @author GitHub Copilot 🤖 | |
| // @match https://www.heise.de/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=heise.de | |
| // @grant none | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| function cleanPage() { | |
| // Remove "Für Newsletter anmelden" element | |
| const teaserBranding = document.getElementById('wtma_teaser_ho_vertrieb_inline_branding'); | |
| if (teaserBranding) teaserBranding.remove(); | |
| // Remove "Lesen Sie auch" zone | |
| const recommendationBox = document.querySelector('div[data-component="RecommendationBox"]'); | |
| if (recommendationBox) recommendationBox.remove(); | |
| // Remove "Preisvergleich" zone | |
| const priceComparison = document.querySelector('a-opt-in[checkbox-text="Preisvergleiche immer laden"]'); | |
| if (priceComparison) priceComparison.remove(); | |
| } | |
| // 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 }); | |
| })(); |
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.3 | |
| // @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 top-most banner | |
| document.documentElement.removeAttribute('class'); | |
| // 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 mostRead1 = document.querySelector('[data-upscore-zone="Meistgelesene Artikel"]'); | |
| if (mostRead1) mostRead1.remove(); | |
| const mostRead2 = document.querySelector('div[data-upscore-zone="Meistgelesen"]'); | |
| if (mostRead2) mostRead2.remove(); | |
| // Remove app install smart banner | |
| const smartBanner = document.querySelector('.smartbanner'); | |
| if (smartBanner) smartBanner.remove(); | |
| // Remove "Empfohlene redaktionelle Inhalte" zone | |
| document.querySelectorAll('div.editor-item').forEach(el => { | |
| if (el.querySelector('span')?.textContent.includes('Empfohlener redaktioneller Inhalt')) { | |
| el.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