Reddit Chat Anonymizer

A privacy-focused userscript that locally modifies Reddit chat to enhance anonymity by removing usernames and avatars

目前为 2024-12-19 提交的版本。查看 最新版本

作者
AveTrue
评分
0 0 0
版本
1.0.1
创建于
2024-12-18
更新于
2024-12-19
大小
3.2 KB
许可证
GNU General Public License v3.0
适用于

Reddit Chat Anonymizer

A userscript that enhances privacy in Reddit chat by modifying how user information is displayed locally in your browser.
Features

Removes usernames from chat messages (except your own)
Replaces all user avatars with a neutral placeholder image
Works with Reddit's new chat interface
Updates dynamically as new messages appear
Only modifies the display locally - does not affect the actual chat data

Technical Details

The script works by:

Navigating through Reddit's shadow DOM structure to locate chat elements
Identifying usernames and avatars within chat messages
Clearing username text and replacing avatar images
Maintaining continuous monitoring for new messages
Preserving your own username and avatar for context

Implementation Notes

Uses shadow DOM traversal to access encapsulated chat components
Employs mutation observation for dynamic content updates
Runs on a 50ms interval to ensure consistent display modification
Includes error handling for missing DOM elements
Compatible with ViolentMonkey userscript manager

Usage

Simply install the script in a compatible userscript manager (like ViolentMonkey) and navigate to Reddit chat. The script will automatically begin working after a 2-second initialization delay.
Privacy Considerations

All modifications are client-side only
Does not affect other users' experience
No data is collected or transmitted
Your own username remains visible for context