mirror of
https://github.com/GoogleChrome/chrome-extensions-samples.git
synced 2026-03-27 13:29:34 +07:00
* Implemented mv3 privacy API sample * Added mv3 privacy API sample * Expanded sample and updated readme * Update service-worker.js
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
- Clone this repository.
- Load this directory in Chrome as an unpacked extension.
- Pin the extension to the taskbar and either click the action button or load a webpage.