Skip to content

Instantly share code, notes, and snippets.

@dPacc
Created June 12, 2023 11:02
Show Gist options
  • Save dPacc/363336aded29c7aeda284a3c413af577 to your computer and use it in GitHub Desktop.
Save dPacc/363336aded29c7aeda284a3c413af577 to your computer and use it in GitHub Desktop.
Chrome Sync & Local Storage Commands
// Clear chrome sync storage
chrome.storage.sync.clear(() => {
  console.log('Chrome sync storage has been cleared.');
});

// Clear chrome local storage
chrome.storage.local.clear(() => {
  console.log('Chrome local storage has been cleared.');
});
@dPacc
Copy link
Author

dPacc commented Jul 31, 2023

chrome.storage.local.get(console.log)
chrome.storage.sync.get(console.log)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment