Last active
January 16, 2022 21:46
-
-
Save eai04191/950df3d2eb369063a7cf2a533873f6bd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ゲームクライアントがあるコンテキストで実行すること | |
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