Created
July 24, 2020 09:10
-
-
Save dmitrydyomin/a663b54e577f1390104a82a8297b98ef to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.querySelectorAll('.comment').forEach(el => { | |
const score = parseInt(el.querySelector('.voting-wjt__counter').innerText.replace('–', '-')); | |
if (Math.abs(score) < 2) { | |
el.remove(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment