neilv
I think this is a much better solution for that problem and many others: https://addons.mozilla.org/en-US/firefox/addon/ublock-origin...
lapcat
Here's a Manifest V3 extension to block Google Analytics. First, the manifest.json file:

  {
  "name": "Block Google Analytics",
  "version": "1.0",
  "description": "Blocks Google Analytics.",
  "declarative_net_request": {
    "rule_resources": [{
      "id": "ruleset_1",
      "enabled": true,
      "path": "rules.json"
    }]
  },
  "permissions": [
    "declarativeNetRequest"
  ],
  "manifest_version": 3
  }
And the rules.json file:

  [
    {
        "id": 1,
        "action": { "type": "block" },
        "condition": {
            "domainType": "thirdParty",
            "requestDomains": [
                "analytics.google.com",
                "google-analytics.com"
            ],
            "resourceTypes": [
                "ping",
                "script",
                "xmlhttprequest"
            ]
        }
    }
  ]
redder23
Just use Brave or install uBlock origin Firefox or other Chromium based browsers. And god forbid do not use Chrome. And make sure you have the Easy-Privacy list active. Brave actually uses the list internally without showing it to the user on the filter list screen.

If you would like to block tracking this way you would need to install thousands of addons for every company/domain/... its a pretty shitty solution. Is Google by law somewhere required to provide this or why is this an actual official extension?

makeitdouble
This is probably an good thing if you're in any situation where you'd want an official, perfectly identifiable entity providing the blocking extension.

For instance this could be easier to convince a school board to introduce this extension than another one with a weird name, made by some gorhill guy they've never heard about.

mhasbini
source code:

    /* Copyright 2010 Google Inc. All Rights Reserved. http://tools.google.com/dlpage/gaoptout/intl/en/eula_text.html */
    (function () {
    var a = document.createElement("script");
    a.type = "text/javascript";
    a.innerText =
        'window["_gaUserPrefs"] = { ioo : function() { return true; } }';
        document.documentElement.insertBefore(a, document.documentElement.firstChild);
    })();
Karellen
Because if you don't want Google analysing what you do on the internet, of course you're going to trust a Google-supplied add-on to manage that in your interests, and not in Google's.

Wat?

Obscurity4340
That's cute, it should read" "opt"-"out" "
tech234a
Notably it still uses Manifest V2 so it will likely break if it isn't updated before Manifest V3 becomes required.
butz
Who needs standards. Do Not Track? Better build our own extension.
brucethemoose2
Do I even need this with a "blocking" browser like Cromite?
pacifika
That’s GDPR evidence for not having informed consent isn’t it?
sr.ht