4

As a contributor to Charcoal, I often find that the spam and offensive mask (i.e. "this post was deleted as spam or offensive and is therefore not shown, see the revision history") just gets in my way at times.

Can I please get a user script that removes this mask, and makes the spam post show on the page as if the masking feature didn't exist?

3
  • If anyone needs a spam post for testing, this post is quite likely to have been deleted as spam. Commented Oct 27, 2018 at 10:53
  • Only 10K users would be able to use this feature unless, maybe, the original body can be pulled from Metasmoke? Commented Oct 27, 2018 at 16:21
  • @BrockAdams There is an upvote now. I think it's fine for use by >10k users only, since they're the only ones who run into the masked spam message. In Charcoal, other users can see the post source on metasmoke; it's only if the user wants additional context that they'd actually click on the post (which does happen with me from time to time). Commented Oct 27, 2018 at 17:39

1 Answer 1

6

I've written a simple script for this, called NSFW (because it shows content that is Not Suitable For Work). It will only work if you have 10k reputation (2k on beta sites); otherwise, you probably won't see the post anyway. The link to the revision history will be added to the 'post menu' with the share, edit and flag links.

You can install it here (directly from GitHub).
Source code is here.

Developed and tested with Violentmonkey on Firefox, but should work on other browsers/monkey as well.

Known issues

  • Posts containing code snippets will have those snippets show as plain code text and not as a runnable snippet.
  • Due to SE changes, this script does not currently work on the international sites (sites whose UI is in a language other than English).

Screenshot

You can see it in action in the screenshot below (behind a spoiler, it's NSFW after all…)

enter image description here

5
  • Works on Tampermonkey on Microsoft Edge. Commented Oct 27, 2018 at 17:41
  • Bug: Code snippets don't properly show up. See meta.stackexchange.com/questions/317287 for example. It just shows as normal code, not as a snippet. Commented Oct 28, 2018 at 19:55
  • @gparyani, That's a Stack Exchange thing. You can post an FR on Meta, if you are feeling frisky. Commented Oct 29, 2018 at 23:40
  • Interesting, I thought that was some kind of precaution for malicious scripts, but the buttons do work on the revision page: meta.stackexchange.com/revisions/317287/1 Commented Oct 30, 2018 at 7:38
  • @Glorfindel, yes and notice that the inline code is grayed, so the formatting is not at all consistent. Commented Oct 31, 2018 at 19:27

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.