From 91cdaa5c6d8361ae012d7f16ea6a7be192965315 Mon Sep 17 00:00:00 2001 From: earthlng Date: Sun, 5 Feb 2023 14:01:11 +0000 Subject: [PATCH] Update prefsCleaner.bat --- prefsCleaner.bat | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/prefsCleaner.bat b/prefsCleaner.bat index eac7dc4..5c41f61 100644 --- a/prefsCleaner.bat +++ b/prefsCleaner.bat @@ -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: