ニーア暗号解読器
2文字ごとに分割 → %付与 → UTF-8デコード
by sii_side
HTML
<textarea id="before" cols="30" rows="10"></textarea><br>
<button>decode</button><br>
<textarea id="after" cols="30" rows="10"></textarea>
JavaScript
const b = document.querySelector('#before')
const a = document.querySelector('#after')
const button = document.querySelector('button')
button.addEventListener('click', () => {
a.value = decodeURIComponent(b.value.replace(/\s/g, '').match(/.{2}/g).map(byte => `%${byte}`).join(''))
})