anchor.diff:  
   REM ### ghacks-user.js updater for Windows
   REM ## author: @claustromaniac
  -REM ## version: 1.0
  +REM ## version: 2.0
   
   SETLOCAL EnableDelayedExpansion
  +SET "_ua="
  +SET "_log="
  +:parse
  +IF "%~1"=="" GOTO endparse
  +IF "%~1"=="-unattended" SET "_ua=true"
  +IF "%~1"=="-log" SET "_log=true"
  +SHIFT
  +GOTO parse
  +:endparse
   SET "_name="
   SET "_date="
   SET "_version="
   SET /A "_line=0"
  +ECHO.
   IF EXIST user.js (
   	FOR /F "delims=" %%i IN (user.js) DO (
   		IF !_line! EQU 1 SET "_name=%%i"
  
positive.code: 			SET "_date=!_date:~8!"
  			ECHO ghacks user.js !_version!, !_date!
  		) ELSE ( ECHO Current user.js version not recognised. )
  	)
  ) ELSE ( ECHO user.js not found. )
  ECHO.
  ECHO This batch should be run from your Firefox profile directory. It will download the latest version of ghacks user.js from github and then append any of your own changes from user-overrides.js to it.
  ECHO.
  CHOICE /M "Continue"
  IF ERRORLEVEL 2 GOTO end
  CLS
  ECHO.
  IF EXIST user.js (
  	IF EXIST user.js.bak REN user.js.bak user.js.old.bak
  	REN user.js user.js.bak
  
negative.code: ECHO.
  IF EXIST user.js (
  	IF EXIST "user-overrides.js" (
  		ECHO Appending user-overrides.js...
  		ECHO.
  		COPY /B /V /Y user.js+"user-overrides.js" "tempuserjs"
  		DEL /F user.js
  		REN tempuserjs user.js
  		ECHO.
  	)
  	ECHO Handling backups...
  	SET "changed="
  	IF EXIST user.js.bak ( FC user.js.bak user.js >nul && SET "changed=false" || SET "changed=true" )
  	ECHO.
  	ECHO.
  	IF "!changed!"=="true" (
  		IF EXIST user.js.old.bak DEL /F user.js.old.bak
  		ECHO Update complete.
  	) ELSE (
  		IF "!changed!"=="false" (
  			DEL /F user.js.bak
  			IF EXIST user.js.old.bak REN user.js.old.bak user.js.bak
  			ECHO Update completed without changes.
  		) ELSE ECHO Update complete.
  	)
  	ECHO.
  ) ELSE (
  	IF EXIST user.js.bak REN user.js.bak user.js
  	IF EXIST user.js.old.bak REN user.js.old.bak user.js.bak
  	ECHO.
  	ECHO Update failed. Make sure PowerShell is allowed internet access.
  	ECHO.
  	ECHO No changes were made.
  	ECHO.
  )
  :end
  IF NOT "%_log%"=="true" (
  	IF NOT "%_ua%"=="true" PAUSE
  )
  