Created
November 8, 2025 07:02
-
-
Save Christopher-Hayes/a63fd93e12d1f8e23a2a220734588fab to your computer and use it in GitHub Desktop.
Hide paywall on GoComics - Violent Monkey / Greasy Monkey script
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 Disable paywall on gocomics.com | |
| // @namespace Violentmonkey Scripts | |
| // @match https://www.gocomics.com/* | |
| // @grant none | |
| // @version 1.0 | |
| // @author - | |
| // @description 11/8/2025, 1:50:50 AM | |
| // @run-at document-end | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| // Hide paywall | |
| function hidePaywall() { | |
| const wallList = document.querySelectorAll('[class*="Paywall_upsell"]'); | |
| for (const wall of wallList) { | |
| wall.style.display = 'none'; | |
| } | |
| } | |
| // Run immediately and observe for dynamic content | |
| hidePaywall(); | |
| // Watch for dynamically added paywalls | |
| const observer = new MutationObserver(hidePaywall); | |
| observer.observe(document.body, { childList: true, subtree: true }); | |
| // Re-enable scrolling | |
| const style = document.createElement('style'); | |
| style.textContent = ` | |
| html, body { overflow: unset !important; } | |
| `; | |
| document.head.appendChild(style); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment