Update arkenfox-clear-RFP-alternatives.js
This commit is contained in:
parent
f229a3cb75
commit
a231c1e90e
@ -1,16 +1,19 @@
|
|||||||
/***
|
/***
|
||||||
Version: up to and including FF/ESR78
|
Version: up to and including FF/ESR78
|
||||||
|
|
||||||
This will reset the preferences that are under sections 4600 & 4700 in the
|
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
|
arkenfox user.js. These are the prefs that are no longer necessary, or they
|
||||||
conflict with, privacy.resistFingerprinting if you have that enabled.
|
conflict with, privacy.resistFingerprinting if you have that enabled.
|
||||||
|
|
||||||
For instructions see:
|
For instructions see:
|
||||||
https://github.com/arkenfox/user.js/wiki/3.1-Resetting-Inactive-Prefs-[Scripts]
|
https://github.com/arkenfox/user.js/wiki/3.1-Resetting-Inactive-Prefs-[Scripts]
|
||||||
***/
|
***/
|
||||||
|
|
||||||
(function() {
|
(() => {
|
||||||
let ops = [
|
|
||||||
|
if ("undefined" === typeof(Services)) return alert('about:config needs to be the active tab!');
|
||||||
|
|
||||||
|
const aPREFS = [
|
||||||
/* section 4600 */
|
/* section 4600 */
|
||||||
'dom.maxHardwareConcurrency',
|
'dom.maxHardwareConcurrency',
|
||||||
'dom.enable_resource_timing',
|
'dom.enable_resource_timing',
|
||||||
@ -37,29 +40,27 @@
|
|||||||
'general.oscpu.override',
|
'general.oscpu.override',
|
||||||
/* reset parrot: check your open about:config after running the script */
|
/* reset parrot: check your open about:config after running the script */
|
||||||
'_user.js.parrot'
|
'_user.js.parrot'
|
||||||
]
|
];
|
||||||
|
|
||||||
|
console.clear();
|
||||||
|
|
||||||
if("undefined" === typeof(Services)) {
|
|
||||||
alert("about:config needs to be the active tab!");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
let c = 0;
|
let c = 0;
|
||||||
for (let i = 0, len = ops.length; i < len; i++) {
|
for (const sPname of aPREFS) {
|
||||||
if (Services.prefs.prefHasUserValue(ops[i])) {
|
if (Services.prefs.prefHasUserValue(sPname)) {
|
||||||
Services.prefs.clearUserPref(ops[i]);
|
Services.prefs.clearUserPref(sPname);
|
||||||
if (!Services.prefs.prefHasUserValue(ops[i])) {
|
if (!Services.prefs.prefHasUserValue(sPname)) {
|
||||||
console.log("reset", ops[i]);
|
console.info("reset", sPname);
|
||||||
c++;
|
c++;
|
||||||
} else { console.log("failed to reset", ops[i]); }
|
} else console.warn("failed to reset", sPname);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
focus();
|
focus();
|
||||||
|
|
||||||
let d = (c==1) ? " pref" : " prefs";
|
const d = (c==1) ? " pref" : " prefs";
|
||||||
if (c > 0) {
|
alert(c ? "successfully reset " + c + d + "\n\nfor details check the console" : 'nothing to reset');
|
||||||
alert("successfully reset " + c + d + "\n\nfor details check the Browser Console (Ctrl+Shift+J)");
|
|
||||||
} else { alert("nothing to reset"); }
|
return 'all done';
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user