0 みんなに公開

(() => {
const rule = [...document.querySelectorAll('button')]
.find(b => b.textContent.trim() === '利用規約');

if (!rule) return alert('利用規約ボタンが見つかりません。');
if (document.getElementById('console-online-game-btn')) return;

const button = rule.cloneNode(false);
button.id = 'console-online-game-btn';
button.textContent = 'online〇×ゲーム';
button.removeAttribute('onclick');
button.onclick = () =>
typeof window.toggleGame === 'function'
? window.toggleGame()
: alert('オンライン〇×ゲームを開けません。');

rule.after(button);
})();

0

メモを他の人に見せる

このメモを見せたい人に、このURL(今開いているページのURLです)を教えてあげてください

コメント(0)

  • someone

  • someone