Removes Google result redirect wrappers, click tracking and referrers, with optional forced SafeSearch disable.
A lightweight privacy-focused userscript that removes Google's tracking and redirect wrappers from search-result links, reduces outbound referrer information, and can force Google SafeSearch off.
Designed to work across Tampermonkey, Violentmonkey, Greasemonkey, and other userscript managers without requiring a specific userscript API.
ping attribute from links.onclick, onmousedown, and related handlers.no-referrer to outbound links and adds noreferrer to their rel attribute.gclid, dclid, gbraid, wbraid, ved, and other supported Google parameters.safe=off.pushState, replaceState, popstate, and hashchange.GM_getValue, GM_setValue, or GM_registerMenuCommand to function.localStorage when userscript storage APIs are unavailable.The script detects supported Google redirect URLs such as:
/url/imgres/aclk/link/webhpWhen a supported redirect contains a direct HTTP or HTTPS destination, the script replaces the Google wrapper with the destination URL.
The script is designed to reduce tracking information attached to links leaving Google. Depending on the enabled settings, it can:
ping attributes.no-referrer policy for outbound links.Important: this script does not claim to provide complete anonymity or eliminate all Google tracking. Google can use many mechanisms that are outside the scope of a userscript.
The optional SafeSearch feature attempts to keep supported Google search URLs configured with:
safe=off
It also updates existing Google search links and supported search form fields when they are detected.
The feature is enabled by default and can be switched off from the userscript manager menu:
DTMG: Force SafeSearch OFF ON/OFF
The script provides separate controls for:
There is also a Clean now command for manually triggering a complete link scan.
Designed for modern browsers with standard JavaScript APIs, including Chromium-based and Firefox-based browsers.
It is intended to work with common userscript environments including:
The core functionality does not depend on proprietary userscript APIs.
The script uses a single MutationObserver for dynamic content and batches additional scans when necessary. A low-frequency safety sweep is also used to detect aggressive DOM rewrites.
It does not continuously block page navigation or cancel normal Google clicks.
For troubleshooting, the script exposes a small read-only diagnostic interface in the browser console:
DontTrackMeGoogle.version DontTrackMeGoogle.getSettings() DontTrackMeGoogle.clean()
2.1.1
Focused on stronger redirect cleaning, dynamic-page compatibility, SafeSearch control, userscript-manager compatibility, and safer navigation handling.
MIT License