JSFiddle - React, Tailwind, and code Playground

HTML

<textarea id="ignoreArea"></textarea><input type="button" id="addIgnore" value="Начать игнорировать" /><input type="button" id="removeIgnore" value="Перестать игнорировать" /><input type="button" id="ignoreList" value="Список игнорируемых" />
<div class="Chat">
<li data-user="test1">bla</li>
<li data-user="test2">blabla</li>
<li data-user="test3">blablabla</li>
<li data-user="test4">blablablabla</li>
</div>

CSS

.ignored {
display:none;
}

JavaScript

//$('#ChatHeader a[href="/wiki/Don%27t_Starve_wiki"]').remove();
//$("#ChatHeader .public").prepend('<textarea id="ignoreArea"></textarea><input type="button" id="addIgnore" /><input type="button" id="removeIgnore" />');
var ignore;
var ignoreList = [];
function addIgnore() {
ignore = document.getElementById("ignoreArea").value;
$('.Chat li[data-user = "' + ignore + '"]').addClass('ignored');
document.getElementById("ignoreArea").value = '';
alert('Теперь вы игнорируете пользователя: ' + ignore);
window.ignoreList += [ignore];
}

function removeIgnore() {
ignore = document.getElementById("ignoreArea").value;
$('.Chat li[data-user = "' + ignore + '"]').removeClass('ignored');
document.getElementById("ignoreArea").value = '';
alert('Вы больше не игнорируете пользователя: ' + ignore);
window.ignoreList;
delete ignorelist [ignore];
}


function ignoreList() {
alert('Список игнорируемых: ' + window.ignoreList);
}
document.getElementById("addIgnore").onclick = addIgnore;
document.getElementById("removeIgnore").onclick = removeIgnore;
document.getElementById("ignoreList").onclick = ignoreList;