Giter VIP home page Giter VIP logo

dont-track-me-google's Introduction

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

For example, the search entry

  • http://www.google.com/ (when searching for "Google") will be replaced with:
  • https://encrypted.google.com/url?sa=t&rct=j&q=Google&source=web&cd=8&sqi=2&ved=0CFgQFjAH&url=http%3A%2F%2Fwww.google.com%2F&ei=Ej__TrCkJo2bOrSs2aIE&usg=AFQjCNG5-9Jej-ukVeakTgwonqt2narbYg&sig2=f9f1dWcZoj6ZUC2Zxy9y2g

This script removes Google's link-conversion/tracking feature. This speeds up loading search results and allows you to right-click or tap to copy the link URL.

History

  • december 2011 - First release, as a user script.
  • november 2012 - Published as a Chrome extension.
  • april 2013 - Updated Chrome extension to disable <a ping>. This version worked fine for three years without any modifications.
  • july 2016 - Published Firefox addon. Rewrote the program from scratch to recognize more URLs and to use modern techniques for a better performance.
  • september 2016 - Restored referrer hiding functionality with minimal impact using referrer policies.
  • june 2021 - Published user script on Greasyfork.

Brought to you by Rob Wu (https://robwu.nl).

dont-track-me-google's People

Contributors

anewuser avatar elad avatar rob--w avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dont-track-me-google's Issues

Firefox auth popup issue

Platform: Firefox on Linux
Related to: #43

When opening google oauth popups, this extension causes an error to be thrown. You can replicate this easily using api explorer. I've verified this is a don't track me google bug by having it as the only enabled plugin in private mode.

Steps to reproduce:

  1. go to https://developers.google.com/drive/api/v3/reference/files/list
  2. click execute
  3. get "Error authorizing: popup_blocked_by_browser"

Note that this applies to and only to oauth popups. The google oauth playground uses redirects, so it doesn't have the same issue.

Amazon "sort by" on FireFix broken

When enabled, dont-track-me-google breaks the "sort-by" feature of on amazon.com. Problem disappears when extension is disabled.

To repo: go to amazon.com and search for a product. On the sort-by combo box (drop down) change from featured to anything else. The page is refreshed but stays on featured.

[Feature Request] Stop Google from tracking search queries

Hello, first of all nice project, I've always liked it.
I'm asking if it was possible to add an option to stop Google from tracking search queries (try it yourself, open Network tab under Console with F12 on Google and start typing something, you'll see a bunch requests containing your query are sent to Google.)
I'm able to block all them using a URL blocker add-on by using regex and applying this regex I've made in a very short time:

http(s?)://(www?).google.(com|ad|ae|com.af|com.ag|com.ai|al|am|co.ao|com.ar|as|at|com.au|az|ba|com.bd|be|bf|bg|com.bh|bi|bj|com.bn|com.bo|com.br|bs|bt|co.bw|by|com.bz|ca|cd|cf|cg|ch|ci|co.ck|cl|cm|cn|com.co|co.cr|com.cu|cv|com.cy|cz|de|dj|dk|dm|com.do|dz|com.ec|ee|com.eg|es|com.et|fi|com.fj|fm|fr|ga|ge|gg|com.gh|com.gi|gl|gm|gp|gr|com.gt|gy|com.hk|hn|hr|ht|hu|co.id|ie|co.il|im|co.in|iq|is|it|je|com.jm|jo|co.jp|co.ke|com.kh|ki|kg|co.kr|com.kw|kz|la|com.lb|li|lk|co.ls|lt|lu|lv|com.ly|co.ma|md|me|mg|mk|ml|com.mm|mn|ms|com.mt|mu|mv|mw|com.mx|com.my|co.mz|com.na|com.nf|com.ng|com.ni|ne|nl|no|com.np|nr|nu|co.nz|com.om|com.pa|com.pe|com.pg|com.ph|com.pk|pl|pn|com.pr|ps|pt|com.py|com.qa|ro|ru|rw|com.sa|com.sb|sc|se|com.sg|sh|si|sk|com.sl|sn|so|sm|sr|st|com.sv|td|tg|co.th|com.tj|tk|tl|tm|tn|to|com.tr|tt|com.tw|co.tz|com.ua|co.ug|co.uk|com.uy|co.uz|com.vc|co.ve|vg|co.vi|com.vn|vu|ws|rs|co.za|co.zm|co.zw|cat)/complete/search?.*

yeah, I've not tested it that much. Note that it has to be an additional option, since this stops search hints from getting viewed too.

Google tracking on Android

On Android there is a document request sent by Google after clicking a link under 'Videos' (by the way I'm opening the videos in the browser not in the Youtube app). I tried redirecting the link but that didn't work.

The document request URL is:

https://www.google.com/searchurl/rr.html#app=com.google.android.youtube&pingbase=https://www.google.com/&url=https://m.youtube.com/watch?v=example

I'm guessing it's also used to track clicks for things other than Youtube. Can this document request be stopped so the only request made is to the URL in the url parameter?

Intercept window.open calls, e.g. at maps.google.com

STR:

  1. Open a point of interest on Google Maps, e.g. Kasteel Heeswijk
  2. Click on the website (e.g. kasteelheeswijk.nl).
  3. Notice that a google.com/url?... link is opened.

The link detection/rewriting logic is not triggered because Google Maps uses a button instead of an <a>. Upon clicking the button, window.open is being called, with the following parameters:

window.open(
  "/url?url=https%3A%2F%2Fwww.kasteelheeswijk.nl%2F&sa=t&rct=j&source=maps&usg=...&ved=...",
  "_blank",
  "",
  undefined
);

This could be addressed by intercepting and rewriting window.open calls. But ideally, Google should not use <button> elements, but plain <a>. The use of buttons instead of links prevents users from right-clicking and opening the URL in a new window, for example. That's not a good user experience...

Updated Google Calendar UI

Google Calendar made an update to it's UI available recently:

After updating, if I click on a link in the location or description fields of the calendar appointment I am sent to a 'Redirect Notice' page with a URL like this: https://www.google.com/url?q=https%3A%2F%2Fglobal.gotomeeting.com%2Fjoin%2F123456789

If I copy the URL of a link in the description, I get this URL: https://www.google.com/url?q=https%3A%2F%2Fglobal.gotomeeting.com%2Fjoin%2F123456789&sa=D&ust=1510607942331000&usg=AFQjCNHUB0OustcCNGK3ts5l_ybA6_tM-w

Color of the redirection screen

I use dark themes on almost all of the sites i use including google, and when i click on a link when this script is active the burst of sudden white burns my eyes... I know this is nitpicking but how should i edit the script for the screen to be black instead of white? I've been messing with the code for some time now, but i am just not good enough for the task... I am using the greasemonkey version.

Doesn't de-googlify FTP URLs

I typed in a search of site:arnold.c64.org boulder dash and, since arnold is an FTP site, the results were all ftp: URLs. The extension failed to convert the links into regular, non-Google links. I wonder if this is true of all FTP sites with this extension.

First click not sanitised on Google images

  1. Search on images.google.com, or on google.com and switch to images.
  2. Left click on an image to open the sidebar.
  3. (Right or left) click on the selected image or the title. (link unsanitised)
  4. (Right or left) click on the selected image or the title again. (link sanitised)
  5. Repeat from step 2 indefinitely.

Using version 4.23.1 on Firefox 85.0.2.

Stopped working

At some point (I only noticed today) this extension stopped working for Google news which is a great shame as I have used it since it was a userscript!

dtmg

Tested version 4.2.1 on Vivaldi 1.16 and Chrome 67
ps. thank you for your work on it!

Decode base64-encoded URLs from Google News (news.google.com)

news.google.com uses a different form of encoding.

Example: https://news.google.com/articles/CBMihQFodHRwczovL3d3dy50LW9ubGluZS5kZS9uYWNocmljaHRlbi91a3JhaW5lL2lkXzEwMDMxMDYxNi91a3JhaW5lLWtyaWVnLXJ1c3NsYW5kLXdlbGNoZXMtemllbC12ZXJmb2xndC1wdXRpbi1taXQtZGVtLWx1ZnRhbmdyaWZmLS5odG1s0gEA?hl=de&gl=DE&ceid=DE%3Ade

Base64 part: CBMihQFodHRwczovL3d3dy50LW9ubGluZS5kZS9uYWNocmljaHRlbi91a3JhaW5lL2lkXzEwMDMxMDYxNi91a3JhaW5lLWtyaWVnLXJ1c3NsYW5kLXdlbGNoZXMtemllbC12ZXJmb2xndC1wdXRpbi1taXQtZGVtLWx1ZnRhbmdyaWZmLS5odG1s0gEA

Expected URL: https://www.t-online.de/nachrichten/ukraine/id_100310616/ukraine-krieg-russland-welches-ziel-verfolgt-putin-mit-dem-luftangriff-.html

Extension Interferes with Correct Google Maps Results

What did you do? (steps to reproduce)

  1. Installed Don't Track Me Google extension.
  2. Opened https://maps.google.com.
  3. Typed "McDonald's near 122 South Michigan Avenue, Chicago, Illinois."

What happened? (actual results)

  1. The map zoomed out, but showed McDonald's locations near my home address (the default location where Google Maps opens).

What should have happened? (expected results)

  1. The map should've shown McDonald's locations near 122 South Michigan Avenue, Chicago, Illinois.

Disabling the extension made the expected results happen.

License?

Unless I'm missing something this project doesn't have a license. Any chance we could fix that? I'm willing to submit a PR, just let me know which license you'd like to use. Preferably BSD/MIT. :)

[userscript] errors in console: TrustedScript assignment

Hi Rob @Rob--W. I don't really know when it started happening but i see these errors in console and i'm not sure if the userscript is working as intended. I'm using the latest version of it as of 07-02-2023. Posting here screenshot from console.Anything else i can do on my end,just let me know. Thank you 👍
Capture

P.S. Just to note here. I do mask my User Agent(using Firefox UA,otherwise i'm on Chromium). Hopefully this is not what causing the errors.

Just in case,ping @ameshkov from the AdguardTeam as i'm not sure which is the problem here,the userscript or some settings in AG.
disableGoogleTracking.js.txt

google.com/null redirects

I am using this plugin on Firefox TamperMonkey. Recently Google seems to have changed their redirecting strategy. Thus links exposed with this plugin won't work properly if just clicked on in search results. They will become links to the url www.google.com/null. But if you open them in new tab, they will be opened normally.

Add google.ac

https://www.google.ac/ is also a domain of Google that's used for Search.

It is not listed at https://www.google.com/supported_domains
I found it at the old Wiki page that listed Google domains: https://ipfs.io/ipfs/QmXoypizjW3WknFiJnKLwHCnL72vedxjQkDDP1mXWo6uco/wiki/List_of_Google_domains.html
The wiki page listed 198 domains, whereas my source (supported_domains) lists only 193. The difference is:

Neither of the above lists contain the following (which is part of my list)

Invisible tracking on mouse down events

For some reason Google searches still track you every time you have a mouse up event, it tries to access https://www.google.*/gen_204

Steps to reproduce:

  1. Open Firefox developer tools, Network tab
  2. Search for something
  3. Right-click on a search result to open a context menu/Ctrl-click (for Open in new tab)

Expected result:
No new web request.

Actual result:
Google is hungry for data.

Facebook support

Thanks for the great plugin!

Would you be interested in also supporting other popular web services that mangle URLs?

Facebook and messenger.com are a prime example. Sometimes clicking on a link on messenger.com even leads you to a "You are leaving Facebook, please confirm" page.

Example link:

https://www.budgetbytes.com/2017/01/bibimbap-ultimate-bowl-meal/

https://l.messenger.com/l.php?u=https%3A%2F%2Fwww.budgetbytes.com%2F2017%2F01%2Fbibimbap-ultimate-bowl-meal%2F&h=ATMDKczxocYay-ZLWOaA8UH4dOwRP03eLDAi7fkCNFAP4cFCUFfrxe9uKmyrw7KEl2IfZU8pYb17oGSg-9eKgpOcmbd891DlqUAyqQFOAl3wMr55W8acC65kUKbegRHONCf2cGDT2E60Ow

Degraded performances on console.cloud.google.com

Hi.

I'm using this extension since a few weeks now and it's really good, I wonder why I didn't install it sooner. Thanks for publishing and maintaining it!

However, I observed degraded performances on https://console.cloud.google.com with Firefox displaying a warning "this extension is slowing down your browser".

See the difference when the extension is disabled:

extension-off.mp4

Compared to when it's enabled:

extension-on.mp4

It seems that this doesn't happen systematically, but it's still quite common.

Do you think it's possible to add an option to disable the extension on some sites, based on a regex for example?

I'm using Firefox v114.0 with v4.27 of the "Don't track me Google" add-on.

"Breaks the new Google Earth"

From the Chrome Web Store feedback page (21 april 2017):

There's a new version of Google Earth for Chrome. Unfortunately, DTMG causes it not to work properly. Please try this with the extension enabled:

  1. Go to https://earth.google.com/web/
  2. If a welcome message appears, dismiss it by clicking "SKIP" or the "X" near the top-right corner.
  3. Click the ship's wheel icon on the left. It's labeled "Voyager".
  4. Click "Travel", scroll down a little, and then click "Explore Paris".
  5. There are several entries on this page ("72 Hours in Paris: Day 1", etc.). Clicking on them should open the content right in the browser. However, when DTMG is enabled, it causes Chrome to immediately download a KMZ file instead.

Simply put, the new Google Earth is broken until you disable DTMG.

I followed the above steps, the HTML is as follows:

<a href="#gcs_itin_9;balloonFlyto" title="A second day in Paris, from the Louvre and Centre Pompidou to the Right Bank's Marais neighborhood" target="_blank">
                <span>72 Hours in Paris: Day 2</span>
              </a>

Gmail hijacks links

Hi Rob. Gmail is still hijacking links in emails I receive. Here's an example:

<a href="http://www.forgefix.co.uk/Products/lightning-bolts" target="_blank" data-saferedirecturl="https://www.google.com/url?hl=en-GB&amp;q=http://www.forgefix.co.uk/Products/lightning-bolts&amp;source=gmail&amp;ust=1469172403783000&amp;usg=AFQjCNH-MlbDsXYqI6FIoI6ntAxamRi7lg"><wbr>Products/lightning-bolts</a>

When I click the link for forgefix.co.uk, sleazy Gmail swaps it for the google.com URL

I'm using "Don't track me Google 4.4"

Unable to load home page of Google Music

Google Music has recently updated its home page. Unfortunately, it doesn't seem to work with this extension enabled. When trying to open https://play.google.com/music/listen?u=0#/home, in the console I see these two requests failing, which results in an empty page with music controls and menu bar, but no content:

POST https://music-pa.clients6.google.com/v1/ij/gethome?key=AIzaSyCKH8gd6LPS-GLsYmQlyFlpRrrMDK85G9g&%24ct=application%2Fx-protobuf 403 
POST https://music-pa.clients6.google.com/v1/ij/getmessages?key=AIzaSyCKH8gd6LPS-GLsYmQlyFlpRrrMDK85G9g&%24ct=application%2Fx-protobuf 403 ()

The Network instrument reports the following error:

���;Requests from referer https://play.google.com/ are blocked.���
#type.googleapis.com/google.rpc.Help�q
o
 Google developer console API key�Khttps://console.developers.google.com/project/798898495528/apiui/credential

Once the extension is disabled, everything works fine. I'm using version 4.13.

Could you look into this issue please?

Get listed as replacement of "Remove Google Tracking "

I'm using this extension with success and no complications (also together with uMatrix which disables some JavaScript).

https://addons.mozilla.org/en-US/firefox/addon/remove-google-tracking/ is not compatible with Firefox 57+ and it would be nice if its users found your extension by clicking the corresponding "find a replacement" link.

According to the notice on top of https://blog.mozilla.org/addons/2017/10/26/helping-find-compatible-extensions/ , you need to ask the addons.mozilla.org (AMO) admins/moderators at https://discourse.mozilla.org/t/favorite-webextensions/17087

Thanks!

Tracking Links in Chat

I recently noticed that the chat in Gmail also seems to have tracking links if you paste a URL as a link.

The HTML seems to look like:
<a rel="nofollow noreferrer noopener" target="_blank" href="https://example.org/" class="Xx" tabindex="-1" dir="ltr" data-display="https://example.org/" data-sanitized="https://www.google.com/url?q=https://example.org/&amp;sa=D&amp;source=hangouts&amp;ust=00000&amp;usg=LhLuZg" referrerpolicy="origin">https://example.org/</a>

If this isn't out of scope for this plug-in, it'd be great if removing these could be supported.

GMail Pop-Ups Broken

When I try to invoke a pop-up in GMail ("Show Original", "Print", or the pop-out), the popup loads with a blank page and I get this message in gmail: "Grrr! A popup blocker may be preventing the application from opening the page. If you have a popup blocker, try disabling it to open the window."

[Suggestion] Safari extension

I've managed to run the extension source code through Xcode's safari-web-extension-converter tool, and I was able to compile and use an extension that works on Safari 14. It just works, and it's really useful!

Would you be interested in publishing it to the Apple App Store or distributing a notarized and signed version independently?

Here's some more info on the converter process: https://developer.apple.com/documentation/safariservices/safari_web_extensions/converting_a_web_extension_for_safari

Edge support ?

Hello,

Is there any chance for this extension to support Microsoft Edge ?

Prevent recording of searches?

DTMG does a great job of reversing the transformation by Google of original URLs into URLs that take me on a detour that enables tracking!

However, I understand that Google also records what I search for, and I don't see anything about blocking that on the description of this extension.

Could you add that, or notify me if you know of an extension that already does it?

Thanks!

Facebook tracking

FB works the same as Google Search. Don't you think that it would be nice to create something similar for it?

[Suggestion] YouTube support

When clicking a link in the description of any YouTube video, it first redirects you to youtube.com/redirect and from there to your desired location.
As Google and YouTube belong together it's kind of useless preventing being tracked by google.com but when clicking a link through YouTube they still track you.
It would be nice if this addon could also prevent YouTube from modifying links.

Doesn't work on Google Search ads

The ad result links on Google Search don't appear to be caught by this extension. The ads use a slightly different function google.arwt() as opposed to the rwt() function the regular results use.

SeaMonkey compatibility

The original user-script version of Don't track me Google worked great with all Mozilla browsers, as it could be run through Scriptish or Greasemonkey. However, the current add-on version works only with Firefox. It would be great if you could release a version that works with SeaMonkey.

"Write a review" not working

When you search for a brand on Google you have a box on the right side where you can enter reviews. There's a button "write a review" which doesn't do anything at all when clicked when this addon is enabled in Firefox.

Non-Google website uses Site Search powered by Google, tracking happens

When you use Site Search on a website such as TvTropes, the page domain isn't Google, so the extension does not run, and all of Google's tracking (links swapped with tracking versions when you click on them) remains intact.

I don't know of any good way to fix this without forcing the extension to run on all domains.

Google Docs header links broken?

This is how regular Google Docs link look like (In table of contents for example)

<div class="docs-bubble docs-linkbubble-bubble" role="dialog" aria-label="Change or remove link." tabindex="0" style="direction: ltr; left: 244px; top: 1565px;">
    <a target="_blank" rel="noreferrer" href="#heading=h.pnvgauhbu6d6">#heading=h.pnvgauhbu6d6</a>
    <span> – 
        <span class="docs-bubble-link" role="button" tabindex="0">Change</span> | 
        <span class="docs-bubble-link" role="button" tabindex="0">Remove</span>
    </span>
</div>

Looks like there's a script somewhere there that intercepts the click and scrolls to the header instead opening it in new tab.

Well, it doesn't work if Don't track me Google is enabled -- it opens new tab for it.

I'm using Don't track me Google 4.9

ps: thanks, this extension is great

[feature request] Ready User Script

Hi Rob @Rob--W. Any chance to provide here ready user script with ability to be fetched and updated,something like:
// @version .....
// @license .......
// @downloadURL ......
// @updateURL .....
I'm just trying to offset whatever is not necessary from my Chromium browser to my AdBlocker,which is perfectly capable to run it.
I've been testing it for a while now and didn't see any reason to mess with it,so can be easily moved there.
I'd very much appreciate considering it. Thank you and keep up the good work 👍

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.