Reddit SFW Check

By path411 Last update Oct 8, 2010 — Installed 847 times.

Script Summary: Checks if an article may potentially be NSFW.





This script will show a link next to each article listing. Clicking on this link will scan most of the comments of the story for either 'nsfw' or 'not safe for work' (case-insensitive).

A short message will then show under the article, saying how many comments contained this phrase and the number of total comments scanned.

Clicking on the link again will re-check the article.

Slowness is mostly due to the request to grab the comments.

Note:
I quick hacked this together today, let me know how it works and if you find any problems with it. Not my finest piece of work, but I think decent for a few hours and my first Greasemonkey script. I'll try to quick fix any problems you guys find.

Thanks!

Updates!:
Update:

-Link is now a simple orange "NSFW?" right next to the "report" link.
-Results show below still.
-Fixed a problem where pages past page 1 were not working.