Skip to content

feat(privacy): remove link trackers and turn off dns prefetching - #599

Closed
hanthor wants to merge 2 commits into
hyprlab:mainfrom
tuna-os:feat/link-trackers
Closed

hanthor wants to merge 2 commits into
hyprlab:mainfrom
tuna-os:feat/link-trackers

Conversation

@hanthor

@hanthor hanthor commented Nov 5, 2026

Copy link
Copy Markdown
Contributor
  • Link trackers. A new pure function, mail::link_clean, strips about 35 tracking parameters (utm_*, fbclid, gclid, mc_eid, HubSpot's, ...) and unwraps Outlook Safe Links, Google /url, Facebook l.php and YouTube /redirect when the target is inside the URL, up to four levels, with no network request. Everything else in the URL is left byte for byte. It applies to clicked links and to Open Link, behind a new privacy setting, Remove trackers from links, on by default.
  • DNS prefetch. The reader, composer and preview WebViews now explicitly turn DNS prefetching and developer extras off. WebKitGTK 2.54 already defaults it off and deprecates the getter, so this is defensive.

Tests: a 21-case table for link cleaning; the privacy golden; a display test (ignored without one) for the WebView settings.

A link opened from a message loses utm_ tags, fbclid, gclid, mc_eid and similar, and Outlook Safe Links, Google, Facebook and YouTube redirects are unwrapped when the target is in the link, with no lookup. Settings, Privacy, Remove trackers from links turns it off. Reader, composer and preview views set DNS prefetching off explicitly.
hyprlab added a commit that referenced this pull request Nov 7, 2026
A link opened or copied from a message loses utm_ tags, fbclid, gclid, mc_eid and similar, and Google, Facebook and YouTube redirects are unwrapped when the target is in the link, with no lookup. Outlook Safe Links stay wrapped so Defender still checks the click. Settings, Privacy, Remove trackers from links turns it off. Reader, composer and preview views set DNS prefetching off explicitly.

Co-Authored-By: James Reilly <5840441+hanthor@users.noreply.github.com>
@hyprlab

hyprlab commented Nov 8, 2026

Copy link
Copy Markdown
Owner

Agentic reply:

Your link cleaning is in the 1.48.0-beta.3 release, landed by hand and credited to you. At landing, Outlook Safe Links are left wrapped, since work accounts can rely on that click-time check. Copy Link Address cleans the link too, the setting's subtitle was shortened and the reformat in snippets.rs was left out. Please test it there and report anything that doesn't look right. It reaches the stable channel with the next stable release.

The beta build is in the repo now. If you already have the beta installed, flatpak update picks it up. If not, download and install it first:

flatpak install --user --from https://hylki.hyprlab.co/flatpak/co.hyprlab.Hylki.Beta.flatpakref

RPM, Debian and AppImage betas: Beta channel.

@hyprlab hyprlab closed this Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants