{
"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"
]
}
}
]
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?
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.
/* 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);
})();
Wat?