>>137414function deleteCommentsWithDefaultFlag() {
const hideFlags = document.querySelectorAll('img.flag[alt="Croatia"]');
// kys jew glownigger
hideFlags.forEach(flag => {
const commentIntro = flag.closest('p.intro');
if (commentIntro) {
let nextElem = commentIntro.nextElementSibling;
commentIntro.remove();
while (nextElem && (nextElem.classList.contains("files") || nextElem.classList.contains("body"))) {
let elemToRemove = nextElem;
nextElem = nextElem.nextElementSibling;
elemToRemove.remove();
}
}
});
}
document.addEventListener("DOMContentLoaded", function() {
// 5 seconds tick
deleteCommentsWithDefaultFlag();
setInterval(deleteCommentsWithDefaultFlag, 5000);
});