Innerdvations

1Sep/113

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):

flattr this!