Ian Monroe
Portfolio
Un-DEI

Un-DEI

February 2025 View project
open sourcejavascriptsoftware

In early 2025, it came 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.

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)

Check it out on GitHub