Greasy Fork is available in English.

GoComics Direct Image Redirect

Automatically redirects GoComics pages to direct comic image URLs for faster viewing

Maker
Molly Harris
Dagelijks aantal installaties
0
Totaal aantal installaties
3
Beoordelingen
0 0 0
Versie
1.1.0
Gemaakt op
04-01-2025
Bijgewerkt op
04-01-2025
Grootte
2,04 KB
Licentie
MIT
Wordt toegepast op

This script streamlines the GoComics reading experience by automatically redirecting comic strip pages to their direct image URLs. Instead of loading the full webpage with ads, navigation, and other elements, users get immediate access to just the comic image.

Features

  • Instantly redirects to high-resolution comic images
  • Works for comics from 1900-present
  • Verifies image source authenticity
  • Prevents redirect loops
  • Minimal processing time by running at document start
  • Works across all GoComics syndicated content

Technical Details

The script employs:

  1. URL pattern validation to ensure it only runs on comic pages
  2. Meta tag extraction to locate official image URLs
  3. CDN verification to maintain security
  4. Early execution timing for fastest possible redirect
  5. Error handling with console logging

Configuration

The script includes configurable constants:

  • IMAGE_HOST: CDN hostname verification
  • VALID_URL_PATTERN: URL pattern matching
  • Error logging levels and messages

Known Limitations

  • Only works on dated comic pages
  • Requires meta tags to be present
  • Does not preserve navigation features
  • Bypasses author commentary
  • May break if GoComics changes their CDN
  • Does not work on special features or blog posts