Skip to content

Instantly share code, notes, and snippets.

@eai04191
Last active January 16, 2022 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eai04191/950df3d2eb369063a7cf2a533873f6bd to your computer and use it in GitHub Desktop.
Save eai04191/950df3d2eb369063a7cf2a533873f6bd to your computer and use it in GitHub Desktop.
// ゲームクライアントがあるコンテキストで実行すること
const script = document.createElement("script");
script.src = "https://unpkg.com/dexie/dist/dexie.js";
script.onload = async () => {
const db = new Dexie("/idbfs");
await db.open();
const key = (await db.table("FILE_DATA").toCollection().keys()).find((key) =>
key.includes(
"E5C006E672BA1D17C9DEF34BC18AB8C147F0AF238DE7B480B6B51C7CC9E3FCD8"
)
);
await db.table("FILE_DATA").delete(key);
document.location.reload();
};
document.body.appendChild(script);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment