Files
chrome-extensions-samples/api-samples/browsingData
Oliver Dunk d2296fac85 Update dependencies (#1096)
Updates a nunber of dependencies in a single PR. These were
suggested by dependabot but updating them individually would
mean the reposistory would be in a broken state until everything
had merged.

I'm not personally a huge fan of lowercasing doctype, but
Prettier has taken an opinionated stance here and there is not a
way to disable it:

https://github.com/prettier/prettier/issues/15096
2024-02-20 12:53:23 +01:00
..
2023-06-21 20:31:07 +02:00
2023-06-21 20:31:07 +02:00
2024-02-20 12:53:23 +01:00
2023-06-21 20:31:07 +02:00
2023-06-21 20:31:07 +02:00

chrome.browsingData

This sample demonstrates using the chrome.browsingData API to clear the user's history without having to visit the history page.

Overview

Elements on the extension popup are used to take in user input, and chrome.browsingData.remove is implemented to delete the user's history.

Running this extension

  1. Clone this repository.
  2. Load this directory in Chrome as an unpacked extension.
  3. Pin the extension to the taskbar to access the action button.
  4. Open the extension popup by clicking the action button and interact with the UI. Caution: This extension deletes your browser history.