Resource

Basic check for GPC state

posted on in: Programming, JavaScript and Privacy.

This will let you check for the Global Privacy Control (GPC) state and set the USP string accordingly.

if (
navigator.globalPrivacyControl &&
identityObject.geoState === 'CA'
) {
this.uspapi.uspStringSet = true;
this.uspapi.setUSPString(`1YYY`);
} else if (
Page History

This page was first added to the repository on March 19, 2024 in commit a9f2ab45 and has since been amended once. View the source on GitHub.

  1. move code snippets into resources
  2. Setting up words list and a few other upgrades