mirror of
				https://github.com/arkenfox/user.js.git
				synced 2025-11-03 23:35:26 +01:00 
			
		
		
		
	v2.1 - fix TABs in regex
for some unknown reason the tabs got replaced with spaces
This commit is contained in:
		@@ -3,7 +3,7 @@ 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.0
 | 
					REM ## version: 2.1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
:begin
 | 
					:begin
 | 
				
			||||||
ECHO:
 | 
					ECHO:
 | 
				
			||||||
@@ -11,7 +11,7 @@ ECHO:
 | 
				
			|||||||
ECHO                 ########################################
 | 
					ECHO                 ########################################
 | 
				
			||||||
ECHO                 ####  prefs.js cleaner for Windows  ####
 | 
					ECHO                 ####  prefs.js cleaner for Windows  ####
 | 
				
			||||||
ECHO                 ####        by claustromaniac       ####
 | 
					ECHO                 ####        by claustromaniac       ####
 | 
				
			||||||
ECHO                 ####              v2.0              ####
 | 
					ECHO                 ####              v2.1              ####
 | 
				
			||||||
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."
 | 
				
			||||||
@@ -65,7 +65,7 @@ IF NOT ERRORLEVEL 1 (
 | 
				
			|||||||
GOTO :EOF
 | 
					GOTO :EOF
 | 
				
			||||||
REM ######### Cleanup Function ##########
 | 
					REM ######### Cleanup Function ##########
 | 
				
			||||||
:cleanup
 | 
					:cleanup
 | 
				
			||||||
FOR /F tokens^=2^ delims^=^'^" %%G IN ('FINDSTR /R /C:"^[^\"']*user_pref[       ]*\([   ]*[\"'][^\"']*[\"'][    ]*," user.js') DO (
 | 
					FOR /F tokens^=2^ delims^=^'^" %%G IN ('FINDSTR /R /C:"^[^\"']*user_pref[ 	]*\([ 	]*[\"'][^\"']*[\"'][ 	]*," user.js') DO (
 | 
				
			||||||
	IF NOT ""=="%%G" (SET "[%%G]=1")
 | 
						IF NOT ""=="%%G" (SET "[%%G]=1")
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
(
 | 
					(
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user