Hacker News new | ask | show | jobs
by humaid 2350 days ago
I am using ghacks user.js[1], which makes fingerprinting harder and improves my privacy online. Removing user.js would mean less privacy for me.

[1]: https://github.com/ghacksuserjs/ghacks-user.js

3 comments

I inject this into Chrome to hopefully achieve something similar:

    window.AudioContext = undefined;
    window.OfflineAudioContext = undefined;
    window.BaseAudioContext = undefined;
    navigator.getUserMedia = undefined;
    navigator.webkitGetUserMedia = undefined;
    window.MediaStreamTrack = undefined;
    window.RTCPeerConnection = undefined;
    window.RTCSessionDescription = undefined;
    window.webkitMediaStreamTrack = undefined;
    window.webkitRTCPeerConnection = undefined;
    window.webkitRTCSessionDescription = undefined;
    if (navigator.mediaDevices) navigator.mediaDevices.enumerateDevices = undefined;
    
    //https://googlechrome.github.io/samples/beacon/
    navigator.sendBeacon = undefined;
    //https://mathiasbynens.github.io/rel-noopener/
    window.opener = undefined;
    
    //https://demo.agektmr.com/storage/
    unsafeWindow.window.openDatabase = undefined;
    Object.defineProperty(unsafeWindow.window, "indexedDB", { value: undefined });
    
    
    //https://browserleaks.com/canvas
    //https://panopticlick.eff.org
    HTMLCanvasElement.prototype.toDataURL = undefined;
    HTMLCanvasElement.prototype.toBlob = undefined;
    CanvasRenderingContext2D.prototype.getImageData = undefined;
You create your own customized identity to avoid being unique? Seems unique in itself.
most of tracking/fingerprinting scripts lack any error trapping and simply crash when encountering undefined functions.
But some items such as privacy.ResistFingerprinting will probably be added to the GUI, as they are related to the Tor Uplift project.
Are you using the Firefox setting privacy.resistFingerprinting?
Yes, but there are some things (like privacy.resistFingerprinting.letterboxing) which are hidden preferences you won't find in about:config.
That's good to know. Thanks