Reddit Chat Anonymizer

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

نووسەر
AveTrue
Daily installs
0
Total installs
1
Ratings
0 0 0
وەشان
1.0.2
Created
2024-12-18
Updated
2024-12-20
مۆڵەت
GNU General Public License v3.0
Applies to

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