Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.5.0 #456

Merged
merged 160 commits into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from 159 commits
Commits
Show all changes
160 commits
Select commit Hold shift + click to select a range
7aa01de
Easily Launch Different Chrome Launcher for Demo
MiteshShah Oct 24, 2023
ee1f48f
Add Function Comments
MiteshShah Oct 24, 2023
4d26f3d
Remove unwanted echo
MiteshShah Oct 24, 2023
bc418fd
Installation script
MiteshShah Oct 24, 2023
08f6357
Added script from /usr/local/bin to ~/bin so wont need sudo
MiteshShah Oct 25, 2023
01c9bd6
Update Extenstion Version and Script Location
MiteshShah Oct 25, 2023
6663ea5
Update Installation Script URL for Latest Version
MiteshShah Oct 25, 2023
9765390
Minor Requested Changes
MiteshShah Oct 31, 2023
5dc1709
Update latest file path
MiteshShah Oct 31, 2023
e1ff48e
Update File Location from branch instead of Commit
MiteshShah Oct 31, 2023
b7a6f9a
Go back to the initial directory you started the command in
gagan0123 Nov 2, 2023
305955b
Start Chrome maximized and open DevTools automatically
gagan0123 Nov 2, 2023
b578d04
Update chrome_launcher.sh
fellyph Nov 6, 2023
d5bafe6
Updated Plugin Version
MiteshShah Nov 7, 2023
a6c464b
Windows Scripts
MiteshShah Nov 7, 2023
fc8fb9a
Windows Installation Script
MiteshShah Nov 7, 2023
3c08f3a
Merge pull request #244 from GoogleChromeLabs/updating-extension-to-v…
gagan0123 Nov 7, 2023
e4d1037
Update Extension Path
MiteshShah Nov 15, 2023
f98b78f
Remove unwanted stuff
MiteshShah Nov 15, 2023
7e62c63
Add --silent-debugger-extension-api
MiteshShah Dec 22, 2023
2088f8a
Add new checklist to the PR template
mohdsayed Dec 29, 2023
fd51880
Merge pull request #370 from GoogleChromeLabs/update-pr-template
mohdsayed Dec 29, 2023
bad1b35
Fix the method of fetching value for JS cookies. (#364)
amovar18 Dec 29, 2023
686bd4f
Fix: Update minor UI elements (#367)
mayan-000 Dec 29, 2023
5d82d28
Update tool verion number to the latest
mohdsayed Jan 1, 2024
b414053
feat: Add cookie blocked filter
mayan-000 Jan 2, 2024
d11a0d5
fix: calculate isBlocked from blocked reasons also
mayan-000 Jan 2, 2024
56f8dde
feat: Make blocked reasons dynamic
mayan-000 Jan 2, 2024
2ce800b
ref: trim filter values before adding
mayan-000 Jan 2, 2024
eb45cc8
Remove unused var
mayan-000 Jan 2, 2024
6fb2f85
fix: Sort filter values for dynamic filters
mayan-000 Jan 2, 2024
d6814cd
ref: change filter name and remove description
mayan-000 Jan 2, 2024
7030863
Adding plural string for "Frame details" sections (#382)
fellyph Jan 3, 2024
612a4a7
Revert "Adding plural string for "Frame details" sections (#382)" (#386)
mohdsayed Jan 3, 2024
1772e4a
Update PSAT extension version
mohdsayed Jan 3, 2024
6f24dc1
Merge pull request #389 from GoogleChromeLabs/update-version-to-v0.4.1
gagan0123 Jan 3, 2024
12e1846
Make Cookie Affected => Blocked in CLI dashboard
mayan-000 Jan 4, 2024
ff6009f
Merge branch 'main' of github.com:GoogleChromeLabs/cookie-analysis-to…
mohdsayed Jan 4, 2024
3376a35
Revert "Add new checklist to the PR template" (#393)
mohdsayed Jan 4, 2024
90d3c9e
Feature: Update report downloader function to download sitemap report…
mayan-000 Jan 4, 2024
79fbc1b
ref: break down cookieListing logic into a seperate hook
mayan-000 Jan 5, 2024
3c695f2
Merge branch 'develop' into filters
mayan-000 Jan 8, 2024
f4c024d
feat: disable the filter when no values available
mayan-000 Jan 8, 2024
d47f551
ref: move getValueByKey to common package
mayan-000 Jan 8, 2024
99f42d6
feat: remove hiding of filter sidebar when no data available
mayan-000 Jan 8, 2024
6dc39a8
feat: use sortValues flag for sorting static filters
mayan-000 Jan 8, 2024
a848c64
ref: change import paths
mayan-000 Jan 8, 2024
1cbb96d
ref: Move persistent settings logic to separate hook
mayan-000 Jan 8, 2024
f4d864e
feat: add new keys to TableFilter and pass new persistent key to useF…
mayan-000 Jan 8, 2024
dce2300
feat: implement specific and generic persistent key, handle pre calcu…
mayan-000 Jan 8, 2024
f465a8f
feat: implement precalculated filterValues
mayan-000 Jan 8, 2024
686dd8b
revert: remove logic for hiding arrow
mayan-000 Jan 8, 2024
72924f3
Prevent echoing in terminal when installing
gagan0123 Jan 8, 2024
24f9303
Add message after install script executes to help users
gagan0123 Jan 8, 2024
d128b34
feat: use isDisabled var for rotating icon back to default
mayan-000 Jan 9, 2024
55b8c4a
Merge branch 'filters' into filters-1
mayan-000 Jan 9, 2024
6340b0b
perf: separate the generic and specific filters retrieval useEffect
mayan-000 Jan 9, 2024
e94781a
perf: use setTimeout to provide delay
mayan-000 Jan 10, 2024
c7425c2
ref: create useCookieListing hook to handle table related props
mayan-000 Jan 10, 2024
0900efe
feat: implement pre-calculated filter values
mayan-000 Jan 11, 2024
f93a5ce
feat: use common key for persistence in search
mayan-000 Jan 11, 2024
06b7d3b
Chore: Add missing docs and todos (#413)
mohdsayed Jan 11, 2024
a04f2bf
perf: early return data if persisted data not loaded
mayan-000 Jan 12, 2024
18e1c50
chore: move import to external dependencies
mayan-000 Jan 12, 2024
6ee6f91
Merge pull request #211 from GoogleChromeLabs/Setup-Different-Chrome-…
gagan0123 Jan 15, 2024
a0a3197
Add additional documentation with Chrome launcher commands
gagan0123 Jan 15, 2024
0779c3e
Merge pull request #416 from GoogleChromeLabs/Setup-Different-Chrome-…
gagan0123 Jan 15, 2024
7cd840d
Fix calculation of blocked reasons.
amovar18 Jan 15, 2024
b442588
Enhancement: CLI decoupling - Save analysis results in a directory (#…
ayushnirwal Jan 15, 2024
e3d2b7d
Update links
tunetheweb Jan 15, 2024
82aa190
Merge branch 'main' of github.com:GoogleChromeLabs/cookie-analysis-to…
mohdsayed Jan 15, 2024
64088b0
Update cookie database URL (#415)
milindmore22 Jan 15, 2024
c3d2283
Feature: Copy paste using keyboard (#365)
amovar18 Jan 16, 2024
9b3c84f
Merge pull request #417 from GoogleChromeLabs/update-links
tunetheweb Jan 17, 2024
b97054b
remove unused var
mayan-000 Jan 17, 2024
76b933c
test: Add tests for filters component
mayan-000 Jan 17, 2024
4ba700b
Merge branch 'develop' into filters
mayan-000 Jan 17, 2024
1ca0b15
Merge branch 'filters' into filters-1
mayan-000 Jan 18, 2024
9ce3526
feat: add UI and states to handle toggling all filter values visibility
mayan-000 Jan 18, 2024
aba6891
feat: update logic for list item to include expandAll state
mayan-000 Jan 18, 2024
5d9cc1d
fix: update expandedFilters with latest keys if expanded all
mayan-000 Jan 18, 2024
c60d051
test: update tests for expand all scenarios
mayan-000 Jan 18, 2024
3b81c63
remove unused var
mayan-000 Jan 17, 2024
f7e605b
test: Add tests for filters component
mayan-000 Jan 17, 2024
0c32d30
Merge branch 'filters' into filters-1
mayan-000 Jan 18, 2024
34ba811
test: add testcases for hooks
mayan-000 Jan 19, 2024
d610c3a
Merge main and resolve conflicts
mohdsayed Jan 19, 2024
6e02386
ref: provide var as initial state
mayan-000 Jan 19, 2024
d0a9eae
Merge branch 'filters-1' into filters-2
mayan-000 Jan 19, 2024
13c90f2
Resolve conflict
amovar18 Jan 19, 2024
d136005
Update extension version for installer scripts.
amovar18 Jan 19, 2024
f11c74b
ref: create option component which handles filter selection toggling
mayan-000 Jan 19, 2024
76b050f
Add condition to check error
mohdsayed Jan 22, 2024
587371f
feat: add logical flow for handling select 'All' filter option
mayan-000 Jan 22, 2024
b01855f
ref: restructure option component
mayan-000 Jan 22, 2024
b43422b
feat: implement callbacks and UI for handling select all filter
mayan-000 Jan 22, 2024
0b6f70a
Enhancement: Add `Partition Key` filter to extension (#442)
mayan-000 Jan 22, 2024
ca6e218
Enhancement: Make UI/UX changes to `Blocked Reasons` filter. (#399)
mayan-000 Jan 22, 2024
a91bdd8
chore:add test for findAnalyticsMatchUtility (#438)
ayushnirwal Jan 23, 2024
63ecfa1
Feature: Uniform filtering developer experience across frames (#414)
mayan-000 Jan 23, 2024
793142e
feat: Make new incoming filterValues true if select all is true
mayan-000 Jan 23, 2024
1ba4e33
feat: make select all option persistent
mayan-000 Jan 23, 2024
110bc36
Merge branch 'develop' into filters-2
mayan-000 Jan 23, 2024
26d182e
fix: output dir format (#445)
ayushnirwal Jan 23, 2024
6843bc8
fix: allow closing of expand arrow when single filters are closed and…
mayan-000 Jan 23, 2024
407392e
test: Update testcases
mayan-000 Jan 23, 2024
aecdf11
Merge branch 'develop' into filters-2
mayan-000 Jan 23, 2024
49bf91f
Merge branch 'filters-2' into filters-3
mayan-000 Jan 23, 2024
e8f810f
Feature: Add blocked reasons to CLI output data (#435)
ayushnirwal Jan 24, 2024
b94e853
tests: add new tests
mayan-000 Jan 24, 2024
3b6e929
fix: add custom comparator for blocked reasons
mayan-000 Jan 24, 2024
b0a4467
fix: update condition for showing filter option by default
mayan-000 Jan 24, 2024
be02a46
fix: ordering in CLI output csv files (#443)
ayushnirwal Jan 24, 2024
ac9caba
Merge `main` into `develop` (#451)
gagan0123 Jan 25, 2024
a0f2214
Merge branch 'main' of github.com:GoogleChromeLabs/ps-analysis-tool i…
mohdsayed Jan 25, 2024
cbe708a
Merge branch 'develop' into filters-2
mayan-000 Jan 25, 2024
e61e696
Merge branch 'filters-2' into filters-3
mayan-000 Jan 25, 2024
a67320e
ref: make expand collapse button reactive to state of filters
mayan-000 Jan 25, 2024
b3b5894
test: update tests
mayan-000 Jan 25, 2024
6aa0ef6
Merge branch 'filters-2' into filters-3
mayan-000 Jan 25, 2024
750cf86
ref: remove border bottom
mayan-000 Jan 25, 2024
67d49df
ref: decrease font size
mayan-000 Jan 25, 2024
1a3a2ed
Updating CLI default and help message (#449)
fellyph Jan 27, 2024
5af12dd
Feature: Detect use of Google Sign In (GSI) libraries (#425)
mohdsayed Jan 29, 2024
9984f77
Merge branch 'filters-2' into filters-3
mayan-000 Jan 29, 2024
85112cd
Feature: Add the capability of setting "allow list" content policy (#…
mohdsayed Jan 29, 2024
0bc4677
Enhancement: Format columns width with `widthWeightagePercentage` (#401)
mayan-000 Jan 30, 2024
de6ac15
Fix miscellaneous allow list QA issues (#460)
mohdsayed Jan 30, 2024
e76fe91
Feat: Export cookie table data from the extension (#457)
ayushnirwal Jan 31, 2024
89e15ac
Merge pull request #447 from GoogleChromeLabs/filters-3
mohdsayed Jan 31, 2024
40398bc
ref: move click to seperate callback
mayan-000 Jan 31, 2024
f7c5f53
ref: Update margin bottom
mayan-000 Jan 31, 2024
dfc4ce3
Merge pull request #446 from GoogleChromeLabs/filters-2
mohdsayed Jan 31, 2024
b232745
Fix: Refresh page on context invalidate (#465)
amovar18 Jan 31, 2024
09946b9
Update flags and profile color in Chrome launcher
amedina Jan 31, 2024
b4f696c
Merge pull request #467 from GoogleChromeLabs/update-chrome-launcher
amedina Feb 1, 2024
98a9839
Remove topics list feature (#463)
mohdsayed Feb 2, 2024
834fa13
Update miscellaneous UI elements. (#466)
mayan-000 Feb 2, 2024
1d184aa
Feature: Optimise cookie updating iterations to reduce the cookie loa…
amovar18 Feb 2, 2024
cb91ca0
Feature: Make CLI dashboard filters dynamic (#455)
mayan-000 Feb 2, 2024
901d658
Add new quick-link object and update link (#468)
mayan-000 Feb 2, 2024
8f9c02c
Correct the URL in the install.sh for the launcher script
gagan0123 Feb 2, 2024
946150f
Merge pull request #470 from GoogleChromeLabs/fix/cli-launcher-script
gagan0123 Feb 2, 2024
f6472a8
Initiate store and set sync storage values on chrome.runtime.onStartup
mohdsayed Feb 3, 2024
d051f50
Update condition for updating newUpdates count
mohdsayed Feb 3, 2024
7b96529
Style Fix: Rearrange and rename components in CLI dashboard. (#469)
ayushnirwal Feb 6, 2024
0f05f4f
Fix: Errors appearing on extension page. (#472)
amovar18 Feb 6, 2024
783ed2b
Enhancement: Add 3PCD content to PS landing page (#475)
mayan-000 Feb 6, 2024
29e5794
HotFix: Persist data using global variable (#476)
amovar18 Feb 6, 2024
51390d4
Remove the check for active tab in onTabUpdate handler (#478)
manoj-makkuboy Feb 6, 2024
6e9d648
Fix: Zero cookie issue when window is reopened. (#479)
amovar18 Feb 7, 2024
5e57936
Feature: Differentiate between cookies blocked in request or response…
ayushnirwal Feb 7, 2024
9d04158
Feature: Create Facilitated Testing landing page (#480)
mayan-000 Feb 7, 2024
5ae54cd
Bump version to v0.5.0
mohdsayed Feb 7, 2024
d5fa3ae
Increase maxEntrypointSize and maxAssetSize
mohdsayed Feb 7, 2024
3a45a85
Update cookie database
mohdsayed Feb 7, 2024
0d83ada
Update rws data
mohdsayed Feb 7, 2024
cb38acf
Update changelog for v0.5
mohdsayed Feb 7, 2024
85e22c7
Bump version for bin and main package.json
mohdsayed Feb 7, 2024
bdfb3a1
Fix: CLI fixes in v0.5.0 regression testing (#481)
ayushnirwal Feb 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,3 +189,54 @@
- Feature: Provide switch to turn PSAT's debugging capabilities on and off https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/429
- Chore: Update cookie database https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/430
- Chore: Update related website sets data https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/431

# v0.5.0

## Extension
- Feature: Uniform filtering developer experience across frames https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/414
- Feature: Add the capability of setting "allow list" content policy https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/376
- Feature: Detect use of Google Sign In (GSI) libraries https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/425
- Feature: Optimise cookie updating iterations to reduce the cookie loading time https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/436
- Feat: Export cookie table data from the extension https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/457
- Fix the method of fetching value for JS cookies https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/364
- Fix: Update minor UI elements https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/367
- Enhancement: Add 3PCD content to PS landing page https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/475
- Feature: Update report downloader function to download sitemap report https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/368
- Chore: Add missing docs and todos https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/413
- Feature: Copy paste using keyboard https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/365
- Enhancement: Add `Partition Key` filter to extension https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/442
- Enhancement: Make UI/UX changes to `Blocked Reasons` filter. https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/399
- Chore: Add unit test for findAnalyticsMatch https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/438
- Enhancement: Format columns width with `widthWeightagePercentage` https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/401
- Fix miscellaneous allow list QA issues https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/460
- Feature: Implement `All` filter value for `Blocked Reasons` filter https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/447
- Feature: Add `Expand/Collapse All` button inside filters sidebar https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/446
- Fix: Refresh page on context invalidate https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/465
- Remove topics list feature https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/463
- Feature: Make CLI dashboard filters dynamic https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/455
- Enhancement: Addition of `Quick Links` on landing pages https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/468
- Fix: Errors appearing on extension page https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/472
- HotFix: Persist data using global variable https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/476
- Fix: Library detection section occasional infinite loading https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/478
- Fix: Zero cookie issue when window is reopened https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/479
- Feature: Differentiate between cookies blocked in request or response https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/474
- Feature: Create "Facilitated Testing" landing page https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/480

## CLI
- Enhancement: CLI decoupling - Save analysis results in a directory https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/407
- Fix: CLI dashboard not showing data https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/445
- Feature: Add blocked reasons to CLI output data https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/435
- Fix: Column order in output CSV files https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/443
- Fix: Typos in CLI messages https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/449
- Update miscellaneous UI elements https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/466
- Style Fix: Rearrange and rename components in CLI dashboard https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/469


## Others
- Quickly Launch Different Chrome for Privacy Sandbox Demo https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/211
- Enhancement: Add additional documentation with Chrome launcher commands https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/416
- Correct the URL in the [[install.sh](http://install.sh/)](http://install.sh/) for the launcher script https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/470
- Update: Change cookie database URL https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/415
- Update d.c.c. links https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/417
- Merge `main` into `develop` https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/451
- Update flags and profile color in Chrome launcher https://github.com/GoogleChromeLabs/ps-analysis-tool/pull/467
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Privacy Sandbox

[Privacy Sandbox](https://privacysandbox.com/) is a multi-year [initiative by Google](https://developer.chrome.com/docs/privacy-sandbox/) for building a more private web by defining a set of building blocks (i.e. proposed APIs) enabling [a new privacy model for the web](https://github.com/michaelkleber/privacy-model). Privacy Sandbox encompasses replacing functionality powered by third-party cookies with privacy-preserving alternatives, deprecating third-party cookies, and ensuring developers have a well-lit path to the new capabilities of the platform, and avoid pursuing tracking via other means.
[Privacy Sandbox](https://privacysandbox.com/) is a multi-year [initiative by Google](https://developers.google.com/privacy-sandbox) for building a more private web by defining a set of building blocks (i.e. proposed APIs) enabling [a new privacy model for the web](https://github.com/michaelkleber/privacy-model). Privacy Sandbox encompasses replacing functionality powered by third-party cookies with privacy-preserving alternatives, deprecating third-party cookies, and ensuring developers have a well-lit path to the new capabilities of the platform, and avoid pursuing tracking via other means.

This repository is home to the Privacy Sandbox Analysis DevTools extension (PSAT), which is a tool aimed at assisting developers in preparing their websites for the changes that are happening in Chrome in the context of Privacy Sandbox, and ensuring a seamless transition to a more private web.

Expand Down
15 changes: 15 additions & 0 deletions bin/chrome-3pcd-ps.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
:: Chrome 3pcd with PS Extension

:: Download PS Extension
set "ps_analysis_tool_version=v0.5.0"
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" --silent-debugger-extension-api --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
6 changes: 6 additions & 0 deletions bin/chrome-3pcd.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
:: 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" --silent-debugger-extension-api --test-third-party-cookie-phaseout --enable-features="FirstPartySets,StorageAccessAPI,StorageAccessAPIForOriginExtension,PageInfoCookiesSubpage,PrivacySandboxFirstPartySetsUI" https://example.com >nul 2>&1
rmdir /s /q "%DATA_DIR%" >nul
6 changes: 6 additions & 0 deletions bin/chrome-chip.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
:: Chrome Chip

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" --silent-debugger-extension-api --partitioned-cookies=true https://example.com >nul 2>&1
rmdir /s /q "%DATA_DIR%" >nul
15 changes: 15 additions & 0 deletions bin/chrome-default-ps.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
:: Default Chrome with PS Extension

:: Download PS Extension
set "ps_analysis_tool_version=v0.5.0"
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" --silent-debugger-extension-api --load-extension="%TEMP%\ps-analysis-tool-%ps_analysis_tool_version%\extension" https://example.com >nul 2>&1
rmdir /s /q "%DATA_DIR%" >nul
6 changes: 6 additions & 0 deletions bin/chrome-default.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
:: Default Chrome

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" --silent-debugger-extension-api https://example.com >nul 2>&1
rmdir /s /q "%DATA_DIR%" >nul
5 changes: 5 additions & 0 deletions bin/chrome-psat.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
curl -s https://raw.githubusercontent.com/GoogleChromeLabs/ps-analysis-tool/Setup-Different-Chrome-For-Demo/bin/chrome-default.bat -o chrome-default.bat
curl -s https://raw.githubusercontent.com/GoogleChromeLabs/ps-analysis-tool/Setup-Different-Chrome-For-Demo/bin/chrome-3pcd.bat -o chrome-3pcd.bat
curl -s https://raw.githubusercontent.com/GoogleChromeLabs/ps-analysis-tool/Setup-Different-Chrome-For-Demo/bin/chrome-default-ps.bat -o chrome-default-ps.bat
curl -s https://raw.githubusercontent.com/GoogleChromeLabs/ps-analysis-tool/Setup-Different-Chrome-For-Demo/bin/chrome-3pcd-ps.bat -o chrome-3pcd-ps.bat
curl -s https://raw.githubusercontent.com/GoogleChromeLabs/ps-analysis-tool/Setup-Different-Chrome-For-Demo/bin/chrome-chip.bat -o chrome-chip.bat
85 changes: 85 additions & 0 deletions bin/chrome_launcher.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
#!/bin/bash

# Download Extension
extension_setup() {
ps_analysis_tool_version=v0.5.0
extension_dir="/var/tmp"
cd $extension_dir
if [ ! -d $extension_dir/ps-analysis-tool-$ps_analysis_tool_version ]; then
mkdir -p $extension_dir/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
unzip -qo extension-$ps_analysis_tool_version.zip -d $extension_dir/ps-analysis-tool-$ps_analysis_tool_version
fi
cd -
}

# Detect OS
if [[ "$(uname)" == "Darwin" ]]; then
# Loads Chrome with a temporary profile that is deleted after Chrome is closed
launch_chrome() {
local CHROME_PATH="/Applications/Google Chrome.app"
local DATA_DIR="$(mktemp -d '/tmp/chrome_data_dir.XXXXXXXXXX')"
open -W -na "${CHROME_PATH}" --args \
--disable-sync \
--no-default-browser-check \
--no-first-run \
--start-maximized \
--auto-open-devtools-for-tabs \
--user-data-dir="${DATA_DIR}" \
--silent-debugger-extension-api \
"$@" https://example.com >/dev/null 2>&1 && rm -rf "${DATA_DIR}" &
}
elif [[ "$(uname)" == "Linux" ]]; then
# Loads Chrome with a temporary profile that is deleted after Chrome is closed
launch_chrome() {
local CHROME="google-chrome"
local DATA_DIR="$(mktemp -d '/tmp/chrome_data_dir.XXXXXXXXXX')"
"${CHROME}" \
--disable-sync \
--no-default-browser-check \
--no-first-run \
--start-maximized \
--auto-open-devtools-for-tabs \
--user-data-dir="${DATA_DIR}" \
--silent-debugger-extension-api \
"$@" https://example.com >/dev/null 2>&1 && rm -rf "${DATA_DIR}" &
}
fi

# Launch default chrome
chrome-default() {
launch_chrome \
--install-autogenerated-theme='255,51,51'
}

# Launch default chrome with 3rd Party Cookie Phaseout
chrome-3pcd() {
launch_chrome \
--install-autogenerated-theme='150,220,150' \
--test-third-party-cookie-phaseout \
--enable-features="FirstPartySets,StorageAccessAPI,StorageAccessAPIForOriginExtension,PageInfoCookiesSubpage,PrivacySandboxFirstPartySetsUI,TpcdMetadataGrants,TpcdSupportSettings,TpcdHeuristicsGrants:TpcdReadHeuristicsGrants/true/TpcdWritePopupCurrentInteractionHeuristicsGrants/30d/TpcdBackfillPopupHeuristicsGrants/30d/TpcdPopupHeuristicEnableForIframeInitiator/all/TpcdWriteRedirectHeuristicGrants/15m/TpcdRedirectHeuristicRequireABAFlow/true/TpcdRedirectHeuristicRequireCurrentInteraction/true"
}

# Launch default chrome with Privacy Sandbox extension
chrome-default-ps() {
extension_setup
launch_chrome \
--install-autogenerated-theme='255,51,51' \
--load-extension="$extension_dir/ps-analysis-tool-$ps_analysis_tool_version/extension/"
}

# Launch default chrome with 3rd Party Cookie Phaseout with Privacy Sandbox extension
chrome-3pcd-ps() {
extension_setup
launch_chrome \
--install-autogenerated-theme='150,220,150' \
--test-third-party-cookie-phaseout \
--load-extension="$extension_dir/ps-analysis-tool-$ps_analysis_tool_version/extension" \
--enable-features="FirstPartySets,StorageAccessAPI,StorageAccessAPIForOriginExtension,PageInfoCookiesSubpage,PrivacySandboxFirstPartySetsUI,TpcdMetadataGrants,TpcdSupportSettings,TpcdHeuristicsGrants:TpcdReadHeuristicsGrants/true/TpcdWritePopupCurrentInteractionHeuristicsGrants/30d/TpcdBackfillPopupHeuristicsGrants/30d/TpcdPopupHeuristicEnableForIframeInitiator/all/TpcdWriteRedirectHeuristicGrants/15m/TpcdRedirectHeuristicRequireABAFlow/true/TpcdRedirectHeuristicRequireCurrentInteraction/true"
}

# Launch default chrome with Partitioned Cookies
chrome-chip() {
launch_chrome \
--partitioned-cookies=true
}
44 changes: 44 additions & 0 deletions bin/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#!/bin/bash

# create bin directory inside user home
mkdir -p ~/bin/

# Download Chrome Launcher Script and save to ~/bin/chrome_launcher.sh
curl -s https://raw.githubusercontent.com/GoogleChromeLabs/ps-analysis-tool/develop/bin/chrome_launcher.sh -o ~/bin/chrome_launcher.sh

chmod 755 ~/bin/chrome_launcher.sh

# Check Shell and auto source chrome_launcher.sh
case $SHELL in
*/zsh)
grep "chrome_launcher.sh" ~/.zshrc > /dev/null
if [ $? -ne 0 ]; then
{
echo "if [ -f ~/bin/chrome_launcher.sh ]; then"
echo -e "\tsource ~/bin/chrome_launcher.sh"
echo "fi"
} >> ~/.zshrc
fi
echo -e "Script added to ~/.zshrc, please restart your terminal session or run: \n\tsource ~/.zshrc"
;;
*/bash)
grep "chrome_launcher.sh" ~/.bashrc > /dev/null
if [ $? -ne 0 ]; then
{
echo "if [ -f ~/bin/chrome_launcher.sh ]; then"
echo -e "\tsource ~/bin/chrome_launcher.sh"
echo "fi"
} >> ~/.bashrc
fi
echo -e "Script added to ~/.bashrc, please restart your terminal session or run: \n\tsource ~/.bashrc"
;;
esac

echo -e "\nNew commands that will be available in new terminal session:"
echo -e "\tchrome-default : Opens a Chrome instance with default settings."
echo -e "\tchrome-3pcd : Opens a Chrome instance with Third-Party Cookie Deprecation (3PCD) enabled."
echo -e "\tchrome-default-ps : Opens a Chrome instance with default settings and the Privacy Sandbox extension installed."
echo -e "\tchrome-3pcd-ps : Opens a Chrome instance with 3PCD enabled and the Privacy Sandbox extension installed."

# Source into current terminal session as well
source ~/bin/chrome_launcher.sh
Loading
Loading