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

Element hiding test page #111

Merged
merged 5 commits into from
Feb 7, 2023
Merged

Element hiding test page #111

merged 5 commits into from
Feb 7, 2023

Conversation

dharb
Copy link
Collaborator

@dharb dharb commented Jan 18, 2023

This is a test page for the element hiding feature. I've set it up so that it will work if it is served on either the first-party.site or privacy-test-pages.glitch.me domains (see relevant rules in privacy config here).

To run locally (on macOS) I had to add entries to my /etc/hosts file pointing good.third-party.site & www.first-party.site -> 127.0.0.1, and then followed the mkcert instructions from the README, but with third-party.site "*.third-party.site" & first-party.site "*.first-party.site" appended to the command--this actually produced first-party.example+13-key.pm and first-party.example+13-key.pm files, which weren't picked up by express without editing these lines to match. @kdzwinel should I update these and the README docs to match?

The page tests several cases for each rule type and outputs the results to a table as well as a results global variable.

cc @jonathanKingston

image

@dharb dharb requested a review from kdzwinel January 18, 2023 23:21
Copy link
Member

@kdzwinel kdzwinel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks and works great, nicely done! I left some comments, mostly nits.

features/element-hiding/index.html Outdated Show resolved Hide resolved
features/element-hiding/main.js Show resolved Hide resolved
features/element-hiding/main.js Outdated Show resolved Hide resolved
features/element-hiding/main.js Outdated Show resolved Hide resolved
features/element-hiding/main.js Outdated Show resolved Hide resolved
@dharb
Copy link
Collaborator Author

dharb commented Jan 24, 2023

@kdzwinel thanks for the review! Just pushed a commit to address your comments.

@kdzwinel
Copy link
Member

kdzwinel commented Feb 7, 2023

LGTM, thank you!

@kdzwinel kdzwinel merged commit 24a97a7 into main Feb 7, 2023
@kdzwinel kdzwinel deleted the dharb/element-hiding branch February 7, 2023 01:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants