Files
MR CYBER a6515c3cdb feat: add video pre-roll ads, navigation interstitial, and refactor ad system
- Add VideoAdOverlay (VAST parser + ad player overlay)
- Add VideoAdPlayer (YouTube IFrame API wrapper with VAST ad integration)
- Add NavigationAdOverlay (consent-style interstitial ad on page navigation)
- Add NavigationAdController (route change interceptor with sessionStorage counter)
- Replace iframe embeds with VideoAdPlayer on all 6 video pages
- Add VAST ad overlay to PIP player with play/pause on ad start/end
- Add shared YouTube types (lib/types/youtube.ts) to avoid duplicate declarations
- Add videoAds + navigationAd config sections to config.json
- Add useVideoAdsConfig + useNavigationAdConfig hooks
- Refactor AdFrame: useMemo for enabledNetworks, string key for useEffect, AdsbygoogleWindow type
- All pages build and lint clean
2026-07-18 09:34:12 -07:00
..