Hide Spoiler Titles on Reddit (Written via ChatGPT)

Hides titles for posts marked as spoilers on Reddit. Includes a button that toggles the concealment on/off, and settings that allows users to choose between two concealment styles (blur and overlay). Toggle and settings are persistent.

作者
TheZealot
今日安裝
1
安裝總數
1
評價
0 0 0
版本
1.0.0
建立日期
2025-02-23
更新日期
2025-02-23
尺寸
8.2 KB
授權條款
MIT
腳本執行於

Hide Spoiler Titles on Reddit (Written via ChatGPT)

DISCLAIMER: THIS CODE WAS WRITTEN USING CHATGPT. ISSUES MAY OCCUR. USE IT AT YOUR OWN RISK.


Tired of seeing posts with spoilery titles even if the post is marked as a spoiler? Then this script might be for you. 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 is none for the current Reddit layout. Seeing as there was none, and with me having little to no coding knowledge, I asked ChatGPT to make this script and see how it goes.


FEATURES:

This script hides the titles of posts marked as a spoiler by either blurring the title or covering it with a rectangle. The title gets shown when you hover your cursor over the title.

It also adds a button located near the top-right corner of the page which toggles the concealment of spoiler titles on or off. The button disappears and reappears whenever an image is opened.

It also has settings that can be accessed via the Tampermonkey menu where you can select between two concealment styles (blur and overlay).

Toggle and settings are persistent and carry over in new tabs and browsing sessions (for this to work in private browsing, set "Store data in incognito mode" to "Permanent" via Tampermonkey settings).


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. Not tested on mobile.

3. Concealment of titles currently does not apply fast enough while the page is loading.

4. Blur does not apply instantly when switching between the two styles.