「忍者🥷参上」と入力すると絵文字が除去される。
<input type="text" oninput="removeEmoji(this)"> <textarea oninput="removeEmoji(this)"></textarea>
const pathname = location.pathname.replace('/s/', '/')
document.getElementById('back').href = 'https://iwb.jp' + pathname
function removeEmoji(t) {
const ranges = [
'\u{1f977}',
];
const reg = new RegExp(ranges.join('|'), 'g');
t.value = (t.value).replace(reg, '');
}