mirror of
https://github.com/arkenfox/user.js.git
synced 2025-02-23 19:03:56 +00:00
Update arkenfox-clear-RFP-alternatives.js
This commit is contained in:
parent
a231c1e90e
commit
3b573bf9f0
@ -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 = [
|
const aPREFS = [
|
||||||
/* section 4600 */
|
/* section 4600 */
|
||||||
@ -49,16 +49,16 @@
|
|||||||
if (Services.prefs.prefHasUserValue(sPname)) {
|
if (Services.prefs.prefHasUserValue(sPname)) {
|
||||||
Services.prefs.clearUserPref(sPname);
|
Services.prefs.clearUserPref(sPname);
|
||||||
if (!Services.prefs.prefHasUserValue(sPname)) {
|
if (!Services.prefs.prefHasUserValue(sPname)) {
|
||||||
console.info("reset", sPname);
|
console.info('reset', sPname);
|
||||||
c++;
|
c++;
|
||||||
} else console.warn("failed to reset", sPname);
|
} else console.warn('failed to reset', sPname);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
focus();
|
focus();
|
||||||
|
|
||||||
const d = (c==1) ? " pref" : " prefs";
|
const d = (c==1) ? ' pref' : ' prefs';
|
||||||
alert(c ? "successfully reset " + c + d + "\n\nfor details check the console" : 'nothing to reset');
|
alert(c ? 'successfully reset ' + c + d + "\n\nfor details check the console" : 'nothing to reset');
|
||||||
|
|
||||||
return 'all done';
|
return 'all done';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user