無料アクションゲーム【ブラウザ・ダウンロード不要】

アクションゲームの一覧

置くだけでもいい? // ====== 記録部分 ====== const maxItems = 3; function normalizeUrl(raw) { try { const u = new URL(raw); u.search = ''; u.hash = ''; const host = u.host.replace(/^www\./, ''); let path = u.pathname.replace(/\/$/, ''); if (path === '') path = '/'; // ルート対応 return `${u.protocol}//${host}${path}`; } catch(_) { return raw; } } const title = document.title.replace(/ \| .*$/, ''); const url = normalizeUrl(window.location.href); const ogImg = document.querySelector('meta[property="og:image"]'); const thumb = ogImg ? ogImg.getAttribute('content') : ''; let recent = []; try { recent = JSON.parse(localStorage.getItem('recentGames') || '[]'); } catch(_) {} const map = new Map(); recent.forEach(it => { const key = normalizeUrl(it.url); if (!map.has(key)) map.set(key, { title: (it.title || '').replace(/ \| .*$/, ''), url: key, thumb: it.thumb || '' }); }); map.delete(url); const newList = Array.from(map.values()); newList.unshift({ title, url, thumb }); localStorage.setItem('recentGames', JSON.stringify(newList.slice(0, maxItems))); });