Quick and easy custom* censorship
* custom config coming soon.
Fair warning: This is hardly tested at all. Use at your own risk.
Download the minified version of redacted here
Alternatively, you could clone this repo and run
npm install, then
npm build to make your own copy.
✍️ How to use Redacted
First, drop the minified version of Redacted right at the bottom of the
<body> in your HTML file:
Then, make an instance of Redacted and pass in a selector string for the elements you want to censor.
document.querySelectorAll under the hood, so anything you can select with that, Redacted will be able to find.
Once that's done, call the
censor method on your Redacted instance.
Here's an example:
❌ What you can't censor
You can basically just censor text, so don't bother trying to censor images or something because you'll just be disappointed...