The-OP / Fox

The Unlicense
161 stars 23 forks source link

Disabling locked toolkit.telemetry.enabled #156

Open KOLANICH opened 6 years ago

KOLANICH commented 6 years ago

toolkit.telemetry.enabled is a pref controlling telemetry verbosity, it is locked, and the lock is hardcoded into C++ code to prevent it from being disabled easily https://dxr.mozilla.org/mozilla-central/source/modules/libpref/Preferences.cpp#3213

When they have been asked about that but they have rejected the proposal to unlock it.

Fortunately, in https://github.com/ghacksuserjs/ghacks-user.js/issues/271#issuecomment-398524920 the user @earthlng have advised to use autoconfig to disable this pref.

Autoconfig is described in https://support.mozilla.org/en-US/kb/customizing-firefox-using-autoconfig and some better docs is in https://github.com/Theemim/GeckoAutoconfigIntro .

So here is the manual:

  1. create a file <firefox install dir>/defaults/pref/autoconfig.js with the text
    pref("general.config.obscure_value", 0);
    pref("general.config.filename", "firefox.cfg.js");

Any other prefs won't work in this file.

  1. create the file <firefox install dir>/firefox.cfg.js with the text
    //
    lockPref("toolkit.telemetry.enabled", false);

and any other JavaScript code you want to execute.

In Firefox 62.0b1 this lock changes the locked value.

  1. PROTECT THE FILES FROM NON-ADMIN ACCESS!
leedoyle commented 6 years ago

Thank you, @KOLANICH I hope we support updating the repository at least in the form of creating new issues.

KOLANICH commented 6 years ago

I wonder if this repo makes any sense. Should we migrate to ghacksuserjs/ghacks-user.js add our content to their and just translate the result?

Atavic commented 6 years ago

@KOLANICH maybe pyllyukko?

KOLANICH commented 6 years ago

@Atavic , moved the cursor to star button only to see that this repo is already starred ;) But ghacksuserjs/ghacks-user.js looks more active. I mean I have subscribed to it and I see the messages from it every day.

Atavic commented 5 years ago

BTW This repo makes sense for russian users. Most of the other ones are in english.

Lucatir commented 4 years ago

Hello. My privacy invading friend Google brought me here. Can still confirm that this works on version 70.

For men of the penguin, at least in Arch based linux distributions, the install folder is in /usr/lib/ You're welcome, fam.