Wordpress Plugins
People I Work With
Things I Use
Categories
- Fourth Wall (1)
- Insignificant Bugs That Drive Me Crazy (1)
- Thing-A-Week (12)
- Uncategorized (1)
- WordPress (5)
Tags
admin search by id
archive
audio
bom
bug
byte-order mark
category
censor
code
comment
css
custom post type
dashboard site notes
game
hide
javascript
morse code
msfw
non-breaking space
not safe for work
nsfw
nsw
opera
php
plugin
plugins
post type taxonomy archive
pre
qr code
spoiler
tag
taxonomy
thing-a-week
wordpress
youtube
Make Safe For Work
I wasn't satisfied with the Not-Safe-For-Work WordPress plugin I found, so I wrote one that has far more features than you'd ever imagine a silly plugin like this to have.
The default method, reload, doesn't send any of the offending content to the user's browser until they click on the reveal link, so if someone is behind a filter that prevents them from loading pages with certain words, they'll still be able to view your page.
Here are some demos of the different types available. The spoiler type handles images and advanced styling about as well as you'd expect (exceedingly poorly) but it uses visibility:hidden instead of just trying to turn everything black, so at least it always works.
original text:
really seriously unbelievably long swear word that exceeds all expectations
Standard method (first tag):
[Not Safe for Work. Click to View.]
Standard method (after first tag):
[NSFW]
Spoiler method:
really seriously unbelievably long swear word that exceeds all expectations
Deleted (never show anything, no idea why you'd want this):
[redacted]
Comment (view source):