In early 2025, it has come to my attention that a lot of people and organizations are taking down entire websites because they may contain language that the current administration finds offensive, specifically related to diversity, equity and inclusion. But it seems like a waste to take down a whole site, just to censor a few words that get MAGA panties in a bunch. So much data down the memory hole.
So I devised this little NPM package which will scan your website for any mention of these Very Bad Words, and then will censor them automatically, so you don’t have to burn the whole site down.
Written as a Javascript module, installable via npm install undei
.
Here’s a handy link to the Github repo.
What does it do? Here’s a screen shot. For what it’s worth, by default it puts in a hover state allowing you to hover over the censored word to see what it was. It’s possible to disable this hover state however, rendering the text unreadable. (Pro-tip: screen readers can still read it)
