Files
chrome-extensions-samples/api-samples/privacy
IanStanion-google ef7eb4cd1a Privacy mv3 sample (#956)
* Implemented mv3 privacy API sample

* Added mv3 privacy API sample

* Expanded sample and updated readme

* Update service-worker.js
2023-06-26 15:57:14 +02:00
..
2023-06-26 15:57:14 +02:00
2023-06-26 15:57:14 +02:00
2023-06-26 15:57:14 +02:00

chrome.privacy

This sample demonstrates using chrome.privacy.services to get and set privacy settings.

Overview

The service worker sets the default value for Autofill using chrome.privacy.services.autofillEnabled.set() when the extension is installed. Whenever a page is loaded, or when the action button is clicked, the extension will display the current Autofill setting of autofillAddressEnabled by updating the extension badge.

Running this extension

  1. Clone this repository.
  2. Load this directory in Chrome as an unpacked extension.
  3. Pin the extension to the taskbar and either click the action button or load a webpage.