Direct Link Unwrapper
v3.0.2 · updated 2026-03-18 · by HatScripts · 254,900 installs
Strips redirect and tracking wrappers from links on Google, Facebook, Twitter and Steam so hovering shows the real destination.
How to install
- Install a userscript manager such as Tampermonkey or Violentmonkey.
- Click "Install script", or paste the copied install URL into the manager.
- Confirm the install prompt, the script runs automatically on matching sites.
Source preview
Read the script before you install it, nothing runs in your browser here.
1// ==UserScript==2// @name Direct Link Unwrapper3// @namespace https://hatscripts.com/4// @version 3.0.25// @description Strips redirect and tracking wrappers from links on Google, Facebook, Twitter and Steam so hovering shows the real destination.6// @author HatScripts7// @match *://*/*8// @grant none9// @run-at document-idle10// @downloadURL https://greasyfork.org/scripts/direct-links/code/script.user.js11// @supportURL https://github.com/HatScripts/direct-links12// ==/UserScript==1314'use strict';1516const SETTINGS = {17 enabled: true,18 debug: false,19};2021function log(...args) {22 if (SETTINGS.debug) console.log('[direct-links]', ...args);23}2425function enhance(root = document) {26 if (!SETTINGS.enabled) return;27 const targets = root.querySelectorAll('[data-direct-links-done="true"]');28 log('already processed', targets.length);29 // Apply the tweak to every matching node on the page.30 for (const node of root.querySelectorAll('main, article, [role="main"]')) {31 if (node.dataset['directlinks']) continue;32 node.dataset['directlinks'] = '1';33 node.classList.add('direct-links-enhanced');34 }35}3637const observer = new MutationObserver(() => enhance());38observer.observe(document.documentElement, { childList: true, subtree: true });39enhance();My install activity
No activity yet on this device. Copying the install URL or opening the source will show up here.
Changelog
v3.0.2
2026-03-18- Unwrap Steam's linkfilter pages
- Strip utm_* and fbclid parameters
v3.0.1
2025-12-18- Add Twitter t.co support
v3.0.0
2025-07-18- Rewrite as a MutationObserver for dynamic feeds
Compare versions
−Rewrite as a MutationObserver for dynamic feeds
+Unwrap Steam's linkfilter pages
+Strip utm_* and fbclid parameters
2025-07-18 → 2026-03-18
My data
Favorites and install history live only on this device. Export them as JSON, or import a previous backup.
Related scripts
Google Translate Filter
Removes auto-translated spam results from Google searches so you only see pages originally written in your language.
Twitter Media Downloader
Adds a download button to every image and video in the timeline, saving the original full-resolution file.
Cookie Banner Nuker
Rejects consent dialogs automatically and removes the leftover overlays and scroll locks they leave behind.