Hide Spoiler/NSFW Titles on Reddit

Hides titles of posts marked as spoilers and/or NSFW on Reddit. Includes a toggle button to show/hide titles, and settings to 1). choose between blur and censor bar styles and 2). hide spoiler and/or NSFW titles. Settings are persistent across sessions. Script mostly made using AI.

Author
TheZealot
Daily installs
1
Total installs
14
Ratings
0 0 0
Version
2.0.2
Created
2025-02-23
Updated
2025-03-12
Size
40.9 KB
License
MIT
Applies to

Hide Spoiler/NSFW Titles on Reddit


DISCLAIMER: THIS SCRIPT WAS MAINLY WRITTEN USING CHATGPT, DEEPSEEK, AND CLAUDE AI. ISSUES MAY OCCUR. USE IT AT YOUR OWN RISK.


Tired of seeing posts with spoilery titles on your feed, even if the post is marked as a spoiler? Then this script might be for you. Now also works for NSFW titles!

I noticed that while there is an existing script that does this for Old Reddit (https://greasyfork.org/en/scripts/27404-blur-title-reddit), there was none for the current Reddit layout. Seeing as there was none, and with me being absolutely sick of people spoiling stuff via titles, but having little to no coding knowledge, I asked a bunch of AI (first ChatGPT, then DeepSeek, then finally Claude AI) to make this script and see how it goes.

Originally made just for personal use, I realized that this script might be useful to others, so I decided to post it here.


FEATURES:

  • Hide Spoiler Titles: This script hides the titles of posts marked as a spoiler by either blurring the title or covering it with a censor bar. The title gets shown when you hover your cursor over the title.

  • Hide NSFW Titles: NSFW post titles can also be hidden with this script (off by default, must be enabled in the settings).

  • Toggle Button: It also adds a button that toggles hiding spoiler/NSFW titles on or off. Located right next to the profile picture. Right-clicking it opens the settings.

  • Settings: A settings menu is also available, accessed by right-clicking the toggle button. You can choose between two title concealment styles (Blurred and Censor Bar), and choose which titles to hide (Spoilers, NSFW, or Both). Blur intensity can also be adjusted with a slider.

  • Persistence: Toggle and settings are persistent and carry over in new pages, new tabs, and browsing sessions (for this to work in private browsing, set "Store data in incognito mode" to "Permanent" via Tampermonkey settings if you're using Tampermonkey. Not sure if this is the case for its derivatives like Violentmonkey).



NOTES / CAVEATS / CURRENT ISSUES:

  1. Does not work on Old Reddit. Use this instead: https://greasyfork.org/en/scripts/27404-blur-title-reddit. Both scripts work even if both are installed.

  2. Only tested on Brave, Google Chrome, Microsoft Edge, Mozilla Firefox, and Opera GX. This script only works in Opera GX when using Violentmonkey instead of Tampermonkey.

  3. Not tested on mobile (will probably not add mobile support).

  4. There may be a short delay before spoilers are hidden, especially when loading the page and/or scrolling down too fast.

  5. Currently no way of delaying the unhiding of spoiler titles while hovering over them.

  6. Censor bar sometimes oversized: may span the entire text container of a post title if the title is long (appears as a big rectangle), instead of only covering the text of the title. The rest of the post is not affected. Short titles usually do not have this issue.

  7. May or may not break when Reddit does another massive UI update.

  8. May or may not have regular updates.

  9. Largely written using AI (ChatGPT, Deepseek, and Claude AI).

  10. I have no idea what I'm doing.



If you encounter any issues related to this script or have any suggestions, let me know. If someone else makes a script that's better than this one, then I'll probably just use that one instead and perhaps link it here.