Skip to content

Instantly share code, notes, and snippets.

@Christopher-Hayes
Created November 8, 2025 07:02
Show Gist options
  • Select an option

  • Save Christopher-Hayes/a63fd93e12d1f8e23a2a220734588fab to your computer and use it in GitHub Desktop.

Select an option

Save Christopher-Hayes/a63fd93e12d1f8e23a2a220734588fab to your computer and use it in GitHub Desktop.
Hide paywall on GoComics - Violent Monkey / Greasy Monkey script
// ==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