From 3b573bf9f0f69dcc26c6d20c41056ca4c6e7503f Mon Sep 17 00:00:00 2001 From: earthlng Date: Wed, 7 Jul 2021 14:15:51 +0000 Subject: [PATCH] Update arkenfox-clear-RFP-alternatives.js --- scratchpad-scripts/arkenfox-clear-RFP-alternatives.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scratchpad-scripts/arkenfox-clear-RFP-alternatives.js b/scratchpad-scripts/arkenfox-clear-RFP-alternatives.js index b9a1b29..c82c5fa 100644 --- a/scratchpad-scripts/arkenfox-clear-RFP-alternatives.js +++ b/scratchpad-scripts/arkenfox-clear-RFP-alternatives.js @@ -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';