user.js

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 3b573bf9f0f69dcc26c6d20c41056ca4c6e7503f
parent a231c1e90e64d345b3002e2f2ace6aae8b17069c
Author: earthlng <earthlng@users.noreply.github.com>
Date:   Wed,  7 Jul 2021 14:15:51 +0000

Update arkenfox-clear-RFP-alternatives.js
Diffstat:
Mscratchpad-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 @@ -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';