Update arkenfox-clear-RFP-alternatives.js

This commit is contained in:
earthlng 2021-07-07 14:15:51 +00:00 committed by GitHub
parent a231c1e90e
commit 3b573bf9f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@
(() => {
if ("undefined" === typeof(Services)) return alert('about:config needs to be the active tab!');
if ('undefined' === typeof(Services)) return alert('about:config needs to be the active tab!');
const aPREFS = [
/* section 4600 */
@ -49,16 +49,16 @@
if (Services.prefs.prefHasUserValue(sPname)) {
Services.prefs.clearUserPref(sPname);
if (!Services.prefs.prefHasUserValue(sPname)) {
console.info("reset", sPname);
console.info('reset', sPname);
c++;
} else console.warn("failed to reset", sPname);
} else console.warn('failed to reset', sPname);
}
}
focus();
const d = (c==1) ? " pref" : " prefs";
alert(c ? "successfully reset " + c + d + "\n\nfor details check the console" : 'nothing to reset');
const d = (c==1) ? ' pref' : ' prefs';
alert(c ? 'successfully reset ' + c + d + "\n\nfor details check the console" : 'nothing to reset');
return 'all done';