Google Search Direct Links (Bypass /goto)

Restore real destination URLs in Google Search results (Web, Images, Videos, Shorts, Forums), bypassing /goto redirects and tracking parameters.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Autor
StonedKhajiit
Dnevne instalacije
16
Ukupnih instalacija
229
Ocjene
6 1 0
Verzija
0.1.0
Stvoreno
15.08.2026.
Ažurirano
30.08.2026.
Size
107 KB
Licenza
MIT
Primjenjuje se

Google Search Direct Links (Bypass /goto)

A lightweight and efficient userscript that restores real destination URLs on Google Search results, bypassing /goto encrypted redirects and tracking parameters in real time.

Google Search Direct Links (Bypass /goto) - Before & After


Background & Issues

Starting in July 2026, Google began testing randomized /goto?url=... redirect tokens on search results, causing several issues:

  1. Obscured URLs: Prevents direct inspection and copying of genuine target links.
  2. Broken :visited History: Randomized tokens prevent browsers from matching history, breaking purple visited link indicators.
  3. Disrupted Extensions: Domain-filtering tools like uBlacklist cannot detect the actual destination URLs.

Common Triggers: Logged-out browsing and Incognito mode across Web, Images, Google Lens, Videos, Shorts, and Forums tabs.

Reference Articles & Discussions


Key Features

  • Bypass /goto Redirects: Restores real URLs for organic results, AI Overviews, Google Shopping shelves, sitelinks, and forum threads.
  • Restore :visited Styling: Puts authentic target URLs onto href to recover visited link visual indicators.
  • Multi-SERP & Regional TLD Support:
    • Worldwide Regional Domains: Full support for over 190+ Google regional ccTLDs via google.tld and wildcard regex matching (e.g., google.com, google.co.jp, google.com.tw, google.co.uk, etc.).
    • All (Default SERP, no udm/tbm) / Web (udm=web): Full direct link restoration for organic text results and sponsored ads.
    • News (tbm=nws): Sanitizes navigation tracking parameters and click attributes (see limitations below for full details).
    • Images (udm=2): Title links directly to host pages, thumbnails retain preview features, and data-img-url provides direct image sources.
    • Google Lens (Visual Matches): Restores deep destination URLs across "Visual matches" cards and multi-modal exploration entity badges (supporting Facebook, Instagram, Reddit, Pinterest, and publisher sites) while preserving original high-res image sources in data-img-url.
    • Videos & Shorts (udm=7 / udm=39): Direct links for YouTube, Shorts, Reels, TikTok, and more.
    • Forums (udm=18): Restores Reddit, Quora, and community discussion threads.
  • Two-Tier Precision Guard: Prioritizes deep article paths; preserves native /goto 302 redirection when only root domains are present to prevent empty homepage landings.
  • Tracking Parameter Sanitization:
    • External Links: Safely strips srsltid, utm_*, gclid, fbclid (while strictly preserving functional parameters such as size, color, id, and #hash).
    • Internal Search & Service Navigation: Cleans si, sca_esv, fbs, sstk, entry, gsessionid, lsessionid, qsubts, vsdim telemetry tokens across related searches, pagination, knowledge panels, Google Lens category tabs (AI Mode, All, Exact matches, Visual matches, Feedback), Google Maps, Google Flights, and Google Finance (while strictly preserving core multimodal image parameters udm, tbnid, vsrid, vsint).
  • Anti-Hijacking & Cleanup: Strips data-ved, data-sb, ping, and onmousedown telemetry, blocking dynamic URL rewrites on click or hover.
  • Settings Panel: Accessible via the userscript menu; features Shadow DOM style encapsulation, automatic dark/light mode detection, and independent search category toggles (all enabled by default).
  • Debug Mode: Provides instant outline toggling, hover inspection tooltips with source tracking, preserved reason badging, and visual console analytics (__G_DIRECT_LINKS_DEBUG__.report()).
  • Optimized Performance Architecture: Utilizes early data interception, MutationObserver ancestor pruning, and microtask debouncing without polling (setInterval), ensuring low resource consumption and smooth continuous scrolling.

How It Works

  1. Early Interception: Hooks Google's internal W_jd data store at @run-at document-start.
  2. Multi-Vector Extraction: Combines structured arrays, Protobuf decoding, and DOM state pools to match target URLs.
  3. Grid Isolation: Confines fallbacks to single-card containers to prevent cross-card overwrites.
  4. DOM Cleanup: Swaps /goto for direct URLs and strips tracking telemetry.

Limitations & Design Considerations

Following the principles of Precision over Heuristics and the Anti-Degradation Guard, whenever Google does not provide authentic plaintext destination URLs within client-side data structures (W_jd, Protobuf payloads, or HTML comments), the script safely preserves native /goto links. This allows Google's server to execute standard HTTP 302 redirects, preventing broken navigation caused by guessing or mismatched URLs.

Current link categories that are preserved with native redirects due to client-side data limitations include:

  1. Specific AI Overview Citations (including expanded "People also ask" accordions):
    Certain citations only pass dynamic internal tokens to the client without exposing full destination URLs. Direct links are applied only when explicit evidence (such as data-fburl or direct subtree mappings) is present.
  2. Google News (tbm=nws) Search Results:
    Google News results rely entirely on server-side signed redirection tokens; destination publisher URLs are not transmitted in the client-side data payload.
  3. Sub-links within Community / Forum Cards (e.g., Reddit):
    While main discussion titles are fully restored, small dynamically grouped sub-comments, related queries, or thread links underneath lack client-side URL mappings.
  4. Specific Knowledge Panel Interactive Links:
    Includes social media profile icons ("Profiles"), specific fact tags, and links that trigger interactive dialog modals.

Compatibility & Privacy

  • Supported Environments: Tampermonkey (Chrome, Firefox, Edge, Safari, iOS), Violentmonkey, Greasemonkey for UXP (Pale Moon); fully compatible with Chrome, Edge, Firefox, Safari (with Tampermonkey), Pale Moon, Brave, etc.
  • Local & Private: Runs 100% locally on the client side with zero external network requests.

License

MIT License