Update prefsCleaner.bat

This commit is contained in:
earthlng 2023-02-05 14:01:11 +00:00 committed by GitHub
parent 4d67974120
commit 91cdaa5c6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,11 +3,11 @@ TITLE prefs.js cleaner
REM ### prefs.js cleaner for Windows REM ### prefs.js cleaner for Windows
REM ## author: @claustromaniac REM ## author: @claustromaniac
REM ## version: 2.5 REM ## version: 2.6
CD /D "%~dp0" CD /D "%~dp0"
GOTO parse IF /I "%~1"=="-unattended" (SET _ua=1)
:begin :begin
ECHO: ECHO:
@ -15,7 +15,7 @@ ECHO:
ECHO ######################################## ECHO ########################################
ECHO #### prefs.js cleaner for Windows #### ECHO #### prefs.js cleaner for Windows ####
ECHO #### by claustromaniac #### ECHO #### by claustromaniac ####
ECHO #### v2.5 #### ECHO #### v2.6 ####
ECHO ######################################## ECHO ########################################
ECHO: ECHO:
CALL :message "This script should be run from your Firefox profile directory." CALL :message "This script should be run from your Firefox profile directory."
@ -24,6 +24,7 @@ CALL :message "This will allow inactive preferences to be reset to their default
ECHO This Firefox profile shouldn't be in use during the process. ECHO This Firefox profile shouldn't be in use during the process.
CALL :message "" CALL :message ""
TIMEOUT 1 /nobreak >nul TIMEOUT 1 /nobreak >nul
IF NOT DEFINED _ua ( IF NOT DEFINED _ua (
CHOICE /C SHE /N /M "Start [S] Help [H] Exit [E]" CHOICE /C SHE /N /M "Start [S] Help [H] Exit [E]"
CLS CLS
@ -53,13 +54,6 @@ CALL :message %1
TIMEOUT %~2 >nul TIMEOUT %~2 >nul
EXIT EXIT
REM ########## Parse Function ###########
:parse
IF "%~1"=="" (GOTO endparse)
IF /I "%~1"=="-unattended" (SET _ua=1)
:endparse
GOTO begin
REM ########## Message Function ######### REM ########## Message Function #########
:message :message
ECHO: ECHO: