Skip to content

Instantly share code, notes, and snippets.

@Lycolia
Last active April 3, 2021 09:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lycolia/e0a48903be47a4cbc4bb4f318e2b3531 to your computer and use it in GitHub Desktop.
Save Lycolia/e0a48903be47a4cbc4bb4f318e2b3531 to your computer and use it in GitHub Desktop.
Disable Google analytics by owner access
// ==UserScript==
// @name Disable Google analytics
// @description Disable Google analytics by owner access
// @author Lycolia Rizzim
// @namespace https://lycolia.info/
// @version 0.1
// @match pattern here
// @run-at document-start
// @grant none
// ==/UserScript==
(function() {
'use strict';
Object.defineProperty(window, 'ga', {
value: () => console.log('Disable Google analytics by owner access!'),
writable: false
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment