Preview Reddit posts directly inside Google Search results — score, comments, status tags, full-text preview, and embedded media. Core data fetched client-side directly from official APIs; no intermediate middleman servers.
▶️ Watch the Floating Hover Preview demo video
▶️ Watch the Right Side-panel Mode demo video
This is a lightweight userscript designed to enhance your Google search experience by integrating Reddit API data directly. It provides rich metadata, inline post previews, interactive comment browsing, and smooth embedded media playback right inside Google search results — including Google Programmable Search Engine (cse.google.com) — eliminating the need to constantly open new tabs. The script runs 100% client-side; core post and comment payloads are fetched directly from the official Reddit JSON API, and external media details (e.g., Imgur, RedGIFs, Bluesky) are resolved straight from their respective official platforms, with absolutely no unofficial middleman or proxy server involvement.
📋 in the preview header to copy the entire post (title, body, gallery/video links, nested comment trees, and the AI Summary) in clean Markdown blockquotes.⛶) and a default full-height layout for side-panel previews. Implements Hover Intent logic and a motion buffer zone to avoid flicker..gifv / .gif links into HTML5 video players with volume control.t=) under the privacy-enhanced youtube-nocookie.com domain. Vimeo (with secure hash h= parsing), Dailymotion, and RedGIFs links support inline one-click ▶ playback. Players automatically destroy upon preview close to prevent background audio leakage.bsky.app) post links into responsive, elegant inline cards, displaying post text, author details, and attached media directly.Enter to collapse/expand threads.Contains links) or media attachments (Contains media).Enter to jump to the next match, or Shift+Enter for the previous match.⚙️ In-App Settings & Accessibility:
Esc to close previews or lightboxes, ← / → to navigate gallery images, Tab to focus code blocks, and Enter to copy code blocks.🖼️ Full-Screen Gallery Lightbox:
1×–10×), drag-to-pan, ← / → navigation, double-click zoom, and background preloading (±3 adjacent images) for smooth transitions.localStorage for 30 minutes and shared across tabs. Includes an automatic failover router (automatically redirects requests to alternate official endpoints like old.reddit.com or new.reddit.com if rate-limited with 429 or timed out).cse.google.com) result pages. (Customize your font and volume under "⚙️ Settings" in the script manager menu).This userscript imports and utilizes the following external open-source library to provide full media playback compatibility:
https://cdn.jsdelivr.net/npm/[email protected]/dist/hls.min.jsv.redd.it). Reddit's fallback MP4 links are video-only; the HLS manifest is required to combine video and audio tracks. This library enables seamless, synchronized video and audio playback inside browsers that do not natively support HLS (e.g., Chrome, Firefox).To maintain high transparency and security, all declared permissions (@grant) and domain connections (@connect) serve strict, single-purpose functions, and never compromise user privacy:
GM_xmlhttpRequest: Performs cross-origin requests to safely fetch post data and comments directly from Reddit's official APIs.GM_addStyle: Dynamically injects and applies the script's light/dark responsive CSS stylesheet.GM_setValue / GM_getValue: Secures and persists your custom preference settings (e.g., font size, default volume) locally inside your browser.GM_registerMenuCommand: Registers the "⚙️ Settings" command inside your userscript manager's menu for easy access.GM_download: Bypasses cross-origin browser restrictions to directly download high-resolution images or videos to your local machine when the download button in the lightbox is clicked, eliminating the need to manually save files in a new tab.The script only connects to the following whitelisted domains to parse content, with absolutely no tracking or analytical pixels:
reddit.com / *.reddit.com: Retrieves official Reddit post payloads, comments, and native HLS streams.generativelanguage.googleapis.com: Connects to Google's official Gemini API to provide AI summarization.translate-pa.googleapis.com: Connects to Google's official real-time translation endpoints to provide low-latency, stable machine translation for posts and comments.api.imgur.com: Resolves Imgur media details and dynamic endpoints.redgifs.com and its subdomains (e.g., api.redgifs.com, media.redgifs.com): Resolves and plays RedGIFs inline video streams.*.bsky.app / embed.bsky.app: Parses text and attached media for Bluesky social card rendering.(Note: Media elements directly rendered via standard HTML5 <iframe>, <img>, or <video> tags—such as YouTube, Vimeo, Dailymotion embedded players, and GIPHY/Imgur static images—are natively and securely loaded by your browser's default sandbox. Because they do not trigger the script's cross-origin API requests, they do not require and are not included in the @connect directive.)