Firefox Browser Add-ons
  • Extensions
  • Themes
    • for Firefox
    • Dictionaries & Language Packs
    • Other Browser Sites
    • Add-ons for Android
Log in
Preview of Link Handler

Link Handler by wuwenjun

Smart link processing: remove same-origin target attributes, unwrap redirect links, clean tracking parameters

0 (0 reviews)0 (0 reviews)
No UsersNo Users
Download Firefox and get the extension
Download file

Extension Metadata

About this extension
Smart link processing: remove same-origin target attributes, unwrap redirect links, clean tracking parameters

Overview

The extension processes links on every page automatically in this order: unwrap redirect links, remove same-origin target="_blank", and clean tracking parameters. It only modifies links, not page behavior.

General Settings

These switches control the three main features globally.
  • Open same-site links in same tab — When enabled, links pointing to the same website (including relative URLs) will have target="_blank" removed and open in the current tab. Cross-site links are not affected.
  • Enable redirect unwrapping — Global switch. When on, redirect links are replaced with the real destination according to the rules on the Redirects tab. When off, all redirect rules are ignored.
  • Enable tracking cleanup — Global switch. When on, tracking attributes and URL parameters are removed according to the rules on the Tracking tab. When off, all tracking rules are ignored.

Redirect Rules

Each rule matches redirect links on a given domain and extracts the real URL from a query parameter. Common sites like Juejin, Zhihu, Weibo are built in, and you can add custom rules.
  • Domain — The domain to match (suffix match). For example, weibo.cn also matches www.weibo.cn.
  • Parameter — The query parameter that carries the real URL, such as target or url. The value is decoded and assigned as the new link.
  • Path Prefix — Optional. Only applies when the path matches this prefix, used when only certain paths are redirect pages (e.g. jianshu.com/go).
  • Enabled — Temporarily disable the rule without deleting it.
  • Description — A note shown only for your reference.

Tracking Cleanup Rules

Each rule matches a domain and performs three kinds of cleanup on its links. Common sites like Bilibili, Weibo, and Zhihu are built in.
  • Remove Attributes — HTML attributes to remove from the link element, such as data-spmid or suda-uatrack.
  • Prevent Click Rewrite — Block the page from rewriting the link on click, forcing direct navigation instead of a tracked redirect.
  • Clean URL Parameters (use * for all) — Query parameters to remove from the link URL, such as utm_source or spm_id_from. Enter * to remove all parameters. Keep functional parameters like p and t out of this list.
  • Enabled — Temporarily disable the rule without deleting it.
  • Description — A note shown only for your reference.

Whitelist

Websites on the whitelist are skipped entirely. Matching uses domain suffixes: adding example.com also covers www.example.com and sub.example.com. You can also add or remove the current site from the popup.
Rated 0 by 0 reviewers
Log in to rate this extension
There are no ratings yet

Star rating saved

5
0
4
0
3
0
2
0
1
0
No reviews yet
Permissions and data

Required permissions:

  • Access your data for all web sites

Data collection:

  • The developer says this extension doesn't require data collection.
Learn more
More information
Add-on Links
  • Homepage
  • Support site
  • Support Email
  • Copy add-on ID
Version
1.7.2
Size
94.37 kB
Last updated
6 days ago (20 Aug 2026)
Related Categories
  • Privacy & Security
Licence
All Rights Reserved
Version History
  • See all versions
Tags
  • anti tracker
  • privacy
  • security
Add to collection
Report this add-on
Go to Mozilla's homepage

Add-ons

  • About
  • Firefox Add-ons Blog
  • Extension Workshop
  • Developer Hub
  • Developer Policies
  • Community Blog
  • Forum
  • Report a bug
  • Review Guide

Download

  • Download Firefox
  • Windows
  • macOS
  • iOS
  • Android
  • Linux
  • All

Latest Builds

  • Nightly
  • Beta

Firefox for Business

  • Enterprise

Community

  • Connect
  • Contribute
  • Developer

Follow

  • Instagram
  • YouTube
  • TikTok
  • Bluesky
  • Podcast
  • Privacy
  • Cookies
  • Legal

Except where otherwise noted, content on this site is licensed under the Creative Commons Attribution Share-Alike Licence v3.0 or any later version.