Fix pagination links broken on gistpreview.github.io (#32)
The JavaScript that rewrites relative URLs for gistpreview.github.io now handles dynamic content and SPA-style navigation: - Skip already-rewritten links (starting with '?') to prevent double-rewriting when JS runs multiple times - Use MutationObserver to catch dynamically added links - Run on DOMContentLoaded as fallback for DOM timing issues - Add longer delay retry (2s) for slow-loading content Fixes #26 https://gisthost.github.io/?3581c145202388b43862c93176e9f8ad
S
Simon Willison committed
0154c2b879c73b57b59bea73ed44bd706edbd44a
Parent: b7fed22
Committed by GitHub <noreply@github.com>
on 12/31/2025, 7:21:56 AM