2020-07-23 14:22:20 +02:00
|
|
|
/***
|
2021-07-07 16:10:24 +02:00
|
|
|
This will reset the preferences that are under sections 4600 & 4700 in the
|
|
|
|
arkenfox user.js. These are the prefs that are no longer necessary, or they
|
|
|
|
conflict with, privacy.resistFingerprinting if you have that enabled.
|
2020-07-23 14:22:20 +02:00
|
|
|
|
2021-07-08 08:41:59 +02:00
|
|
|
Last updated: 08-July-2021
|
|
|
|
|
2021-07-07 16:10:24 +02:00
|
|
|
For instructions see:
|
|
|
|
https://github.com/arkenfox/user.js/wiki/3.1-Resetting-Inactive-Prefs-[Scripts]
|
2020-07-23 14:22:20 +02:00
|
|
|
***/
|
2021-07-07 16:10:24 +02:00
|
|
|
|
|
|
|
(() => {
|
|
|
|
|
2021-07-07 16:15:51 +02:00
|
|
|
if ('undefined' === typeof(Services)) return alert('about:config needs to be the active tab!');
|
2021-07-07 16:10:24 +02:00
|
|
|
|
|
|
|
const aPREFS = [
|
2020-07-23 14:22:20 +02:00
|
|
|
/* section 4600 */
|
|
|
|
'dom.maxHardwareConcurrency',
|
|
|
|
'dom.enable_resource_timing',
|
|
|
|
'dom.enable_performance',
|
|
|
|
'device.sensors.enabled',
|
|
|
|
'browser.zoom.siteSpecific',
|
|
|
|
'dom.gamepad.enabled',
|
|
|
|
'dom.netinfo.enabled',
|
|
|
|
'media.webspeech.synth.enabled',
|
|
|
|
'media.video_stats.enabled',
|
|
|
|
'dom.w3c_touch_events.enabled',
|
2021-07-08 08:41:59 +02:00
|
|
|
'media.navigator.enabled',
|
2020-07-23 14:22:20 +02:00
|
|
|
'media.ondevicechange.enabled',
|
|
|
|
'webgl.enable-debug-renderer-info',
|
2021-07-08 08:41:59 +02:00
|
|
|
'ui.prefersReducedMotion',
|
|
|
|
'dom.w3c_pointer_events.enabled', // deprecated FF87
|
2020-07-23 14:22:20 +02:00
|
|
|
'ui.use_standins_for_native_colors',
|
|
|
|
'ui.systemUsesDarkTheme',
|
2021-07-08 08:41:59 +02:00
|
|
|
'dom.webaudio.enabled',
|
|
|
|
'layout.css.font-visibility.level',
|
2020-07-23 14:22:20 +02:00
|
|
|
/* section 4700 */
|
|
|
|
'general.appname.override',
|
|
|
|
'general.appversion.override',
|
2021-07-08 08:41:59 +02:00
|
|
|
'general.buildID.override',
|
2020-07-23 14:22:20 +02:00
|
|
|
'general.oscpu.override',
|
2021-07-08 08:41:59 +02:00
|
|
|
'general.platform.override',
|
|
|
|
'general.useragent.override',
|
2020-07-23 14:22:20 +02:00
|
|
|
/* reset parrot: check your open about:config after running the script */
|
|
|
|
'_user.js.parrot'
|
2021-07-07 16:10:24 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
console.clear();
|
2020-07-23 14:22:20 +02:00
|
|
|
|
|
|
|
let c = 0;
|
2021-07-07 16:10:24 +02:00
|
|
|
for (const sPname of aPREFS) {
|
|
|
|
if (Services.prefs.prefHasUserValue(sPname)) {
|
|
|
|
Services.prefs.clearUserPref(sPname);
|
|
|
|
if (!Services.prefs.prefHasUserValue(sPname)) {
|
2021-07-07 16:15:51 +02:00
|
|
|
console.info('reset', sPname);
|
2020-07-23 14:22:20 +02:00
|
|
|
c++;
|
2021-07-07 16:15:51 +02:00
|
|
|
} else console.warn('failed to reset', sPname);
|
2020-07-23 14:22:20 +02:00
|
|
|
}
|
|
|
|
}
|
2021-07-07 16:10:24 +02:00
|
|
|
|
2020-07-23 14:22:20 +02:00
|
|
|
focus();
|
2021-07-07 16:10:24 +02:00
|
|
|
|
2021-07-07 16:15:51 +02:00
|
|
|
const d = (c==1) ? ' pref' : ' prefs';
|
|
|
|
alert(c ? 'successfully reset ' + c + d + "\n\nfor details check the console" : 'nothing to reset');
|
2021-07-07 16:10:24 +02:00
|
|
|
|
|
|
|
return 'all done';
|
|
|
|
|
2020-07-23 14:22:20 +02:00
|
|
|
})();
|
2021-07-07 16:10:24 +02:00
|
|
|
|