old.reddit.com regex Post Filter (Block subreddits by regex, users, block titles by regex)

Filters posts on old.reddit.com by subreddit, user, or title regex. Persistently stores all rules and hides or colors posts with minimal CPU usage.

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
jjenkx
日安装量
0
总安装量
2
评分
0 0 0
版本
1.0
创建于
2025-11-23
更新于
2025-11-23
大小
13.6 KB
许可证
MIT
适用于

This script adds a powerful, low-overhead filtering system to old.reddit.com. It lets you permanently hide or highlight posts based on subreddit, username, or title text using exact matches or regex patterns. All rules are stored persistently and apply instantly to newly loaded posts without reloading the page.

Filtering works in two modes:
Filters Enabled: matching posts are fully hidden.
Filters Disabled: matching posts remain visible but are color-coded to show which rule triggered.

The script uses lightweight caching and a minimal mutation observer for very low CPU impact even on infinite scroll pages.

Features:

Block specific subreddits permanently.

Block specific users permanently.

Add subreddit regex rules that match patterns instead of fixed names.

Add title regex rules for flexible keyword or pattern filtering.

Persistent storage of all lists using GM storage.

Optional color highlighting when filters are turned off so you can inspect why a post matched.

Toggle button for enabling or disabling all filters without removing them.

Inline buttons on each post to block or unblock the post’s subreddit or author with one click.

Live processing of newly loaded posts through a minimal mutation observer to avoid CPU spikes.

Full menu interface through Tampermonkey for adding, removing, listing, or clearing regex rules.

Usability:

Works automatically once installed.

All rule changes take effect instantly without page reload.

All lists remain stored until edited or cleared.

Very efficient even on large subreddits, long sessions, or heavy browsing.