javascript:(async()=>{if(location.hostname!=='tetr.io')return alert('このブックマークは https://tetr.io/ で実行してください。');const u='https://kei1215.github.io/tetrio-hub/bookmarklets/offline-v4.8255/standalone-loader.js',n='tetrio-patch-offline-v4.8255-core6',m=u+'?launcher-meta',p=window.open('','_blank');try{const c=await caches.open(n),old=await c.match(u),mark=await c.match(m);let code=old&&await old.text(),stale=!mark||Date.now()-Number((await mark.json()).savedAt||0)>2592e6;if(stale)try{const r=await fetch(u,{cache:'no-store'});if(!r.ok)throw Error(String(r.status));code=await r.text();await c.put(u,new Response(code));await c.put(m,new Response(JSON.stringify({savedAt:Date.now()})))}catch(e){}if(!code)throw Error('初回起動にはネット接続が必要です。');window.__tetrioStandaloneOfflineTarget=p;Function(code)()}catch(e){p?.close();alert('OFFLINEを起動できませんでした。\n'+e.message)}})()