Skip to content

Instantly share code, notes, and snippets.

@MiteshShah
Last active October 25, 2023 09:12
Show Gist options
  • Save MiteshShah/7a1fbbb852c35939c7d2f3ed09638bde to your computer and use it in GitHub Desktop.
Save MiteshShah/7a1fbbb852c35939c7d2f3ed09638bde to your computer and use it in GitHub Desktop.
chrome-3pcd.bat
:: Chrome 3pcd
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" 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