Skip to content

Instantly share code, notes, and snippets.

View SafeEval's full-sized avatar

Jack Sullivan SafeEval

View GitHub Profile
@SafeEval
SafeEval / dump-indexed-db.js
Last active November 6, 2022 04:09 — forked from azproduction/dump-indexed-db.js
Dumps all IndexedDB databases and saves all of them into a json file
/* Copy/paste this into browser DevTools console. */
;(async () => {
async function dumpDatabase(dbName) {
var dbExists = await new Promise(resolve => {
var request = window.indexedDB.open(dbName)
request.onupgradeneeded = e => {
e.target.transaction.abort()
resolve(false)
}
request.onerror = () => resolve(true)