Skip to content

Instantly share code, notes, and snippets.

@tech234a
tech234a / indexeddb_export.js
Last active January 8, 2024 00:32
Export indexeddb for a website to JSON. Use by pasting into the browser console of the website. Should work in Chromium-based browsers. Note: this code was generated using ChatGPT and may contain bugs.
// WARNING: this code was generated using ChatGPT. Use at your own risk.
function exportIndexedDBToJSON() {
indexedDB.databases().then(async (databases) => {
for (const dbInfo of databases) {
const dbName = dbInfo.name;
try {
const db = await new Promise((resolve, reject) => {
const request = indexedDB.open(dbName, dbInfo.version);
@tech234a
tech234a / README.md
Last active June 10, 2023 14:03
Using unmodified third-party Reddit apps with a custom server