Last active
April 3, 2021 09:18
-
-
Save Lycolia/e0a48903be47a4cbc4bb4f318e2b3531 to your computer and use it in GitHub Desktop.
Disable Google analytics by owner access
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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