Last active
October 25, 2023 10:26
-
-
Save MiteshShah/af6058954f3240a9b2e1d489c2dfc2d6 to your computer and use it in GitHub Desktop.
chrome-3pcd-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
:: Chrome 3pcd 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="255,51,51" --test-third-party-cookie-phaseout --enable-features="FirstPartySets,StorageAccessAPI,StorageAccessAPIForOriginExtension,PageInfoCookiesSubpage,PrivacySandboxFirstPartySetsUI" --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