Don't track me Google

By Rob W Last update Apr 25, 2013 — Installed 36,407 times.

Script Summary: Removes the annoying link-conversion (on click) at Google Search. The Referrer is also hidden to improve your privacy. Designed for Firefox and Google Chrome.

Version: 3.6

Script homepage


At the Google Search engine, search results are converted to an ugly link upon click. This link enables tracking for Google, and hides the referrer to other sites.

For example, the search entry

    (when searching for "Google") will be replaced with:

This script removes Google's link-conversion/tracking feature.
The referral hiding feature has been implemented in another way, so that the 3rd-party sites cannot track your Google search query.

Chrome extension

The same script is available in the Chrome Web Store, see Don't track me Google.

Referrer hiding

In Chrome, this feature has zero side-effects.
For technical reasons, the Firefox-implementation comes with a data-URI redirection. This URI shows up for a split second to hide the referrer. This does not affect the browsing speed, and URI's can still be copied.

If you want to, the referrer hiding feature can be disabled by changing one character at the source code: Replace var HIDE_REFFERER_LEVEL = 3; with var HIDE_REFERRER_LEVEL = 0;. More info about the preferences (including persistence) can be found here.

Change log

  • 31 december 2011 - Release
  • 3 january 2012 - Patched History behaviour.
  • 8 january 2012
    • Updated script injection method to get the script to work in Chromium 17.
    • Added a method to make the referrer invisible to the visited site. This feature improves your privacy.
  • 21 january 2012 - Version 3
    • Replaced do-not-track method with rel="noreferrer" for Webkit-based browsers (Chrome).
    • Fully implemented referrer-hiding for Firefox and Chrome.
    • Halved number of @match rules, to reduce file size.
    • Added configuration variable HIDE_REFERRER_LEVEL
  • 24 january 2012 - 3.1 - Added support for Firefox 2+ (previously 4+).
  • 6 february 2012 - 3.2 - Fixed a small bug: Existing Google-URLs (as in "Jump to anchor") are correctly handled now.
  • 15 february 2012 - 3.3
    • Added support for non-ASCII URLs.
    • Added option (enabled by default) to disable referrer hiding on downloadable files, such as pdf files. In firefox, this feature will not open a data-URI for search results which are prefixed with [...].
    • Added @match *://* rule, to reflect the updated supported Google domain list.
  • 18 february 2012 - 3.4
    • Fixed filter, to completely disable the script for non-search pages.
    • Moved guide from source code to this page and this post to greatly reduce file size.
    • Added preference persistence feature. More details...
    • Corrected URL decoding for existing Google search result links.
  • 15 november 2012 - 3.5
    • Improved URL detection filter: Ignores empty links and recognises Google Maps / Ditu.
    • Beautifies the link on hover (previously, this only happened on click).
    • Published Chrome extension in the Chrome Web Store.
  • 25 april 2013 - 3.6
    • Remove ping attribute to avoid tracking in Chrome
    • Added observer to ensure that Google does not change the URL right before it's visited (fixes issue 123869)

Technical details

I have published the mechanism behind this code on the Stack Exchange websites: Additional information: