Last active
October 25, 2023 10:26
-
-
Save MiteshShah/42263b575213fc5f1563a6fcf05dec02 to your computer and use it in GitHub Desktop.
chrome-default-ps.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: Default Chrome with PS Extension | |
:: Download PS Extension | |
set "ps_analysis_tool_version=v0.3.1" | |
cd /d %TEMP% | |
if not exist %TEMP%\ps-analysis-tool-%ps_analysis_tool_version% ( | |
mkdir %TEMP%\ps-analysis-tool-%ps_analysis_tool_version% | |
curl -L -O -s https://github.com/GoogleChromeLabs/ps-analysis-tool/releases/download/%ps_analysis_tool_version%/extension-%ps_analysis_tool_version%.zip | |
tar -xf extension-%ps_analysis_tool_version%.zip -C %TEMP%\ps-analysis-tool-%ps_analysis_tool_version% | |
) | |
set "CHROME_PATH=C:\Program Files\Google\Chrome\Application\chrome.exe" | |
set "DATA_DIR=%TEMP%\chrome_data_dir-%RANDOM%" | |
"%CHROME_PATH%" --disable-sync --no-default-browser-check --no-first-run --user-data-dir="%DATA_DIR%" --install-autogenerated-theme="150,220,150" --load-extension="%TEMP%\ps-analysis-tool-%ps_analysis_tool_version%\extension" https://example.com >nul 2>&1 | |
rmdir /s /q "%DATA_DIR%" >nul |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment