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 ## author: @claustromaniac
REM ## version: 2.5
REM ## version: 2.6
CD /D "%~dp0"
GOTO parse
IF /I "%~1"=="-unattended" (SET _ua=1)
:begin
ECHO:
@ -15,7 +15,7 @@ ECHO:
ECHO ########################################
ECHO #### prefs.js cleaner for Windows ####
ECHO #### by claustromaniac ####
ECHO #### v2.5 ####
ECHO #### v2.6 ####
ECHO ########################################
ECHO:
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.
CALL :message ""
TIMEOUT 1 /nobreak >nul
IF NOT DEFINED _ua (
CHOICE /C SHE /N /M "Start [S] Help [H] Exit [E]"
CLS
@ -53,13 +54,6 @@ CALL :message %1
TIMEOUT %~2 >nul
EXIT
REM ########## Parse Function ###########
:parse
IF "%~1"=="" (GOTO endparse)
IF /I "%~1"=="-unattended" (SET _ua=1)
:endparse
GOTO begin
REM ########## Message Function #########
:message
ECHO: