GoComics Direct Image Redirect

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

作者
Molly Harris
今日安裝
0
安裝總數
5
評價
0 0 0
版本
1.1.0
建立日期
2025-01-04
更新日期
2025-01-04
尺寸
2.0 KB
授權條款
MIT
腳本執行於

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

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址