Reddit Direct Link

On New Reddit, makes post titles and post boxes link directly to the external website instead of the Reddit comments page.

Автор
narrowstacks
Установок в день
0
Всего установок
3
Оценки
0 0 0
Версия
1.05
Создано
18.03.2025
Обновлено
18.03.2025
Размер
5,9 КБ
Лицензия
MIT
Работает на

Reddit Direct Link Userscript

A Tampermonkey userscript that enhances Reddit browsing by making post titles link directly to external content instead of the Reddit comments page.

GitHub repo

Features

  • Automatically redirects post title and post box clicks to external links instead of Reddit comment sections
  • Preserves Reddit media content (images, videos, galleries) behavior
  • Works with dynamically loaded content (infinite scrolling)
  • Maintains original functionality for Reddit-hosted media
  • Click anywhere on the post to go to the external link (except for interactive elements like buttons)

Prerequisites

  • A web browser (Chrome, Firefox, Safari, etc.)
  • Tampermonkey browser extension installed

Installation

  1. Make sure you have Tampermonkey installed in your browser
  2. Click here to view the raw script
  3. Copy the entire script content
  4. Open Tampermonkey in your browser and click "Create a new script"
  5. Paste the copied script content
  6. Click File > Save or press Ctrl+S (Cmd+S on Mac)

How It Works

The script:

  • Detects posts on Reddit that contain external links
  • Modifies the behavior of post titles and containers to link directly to external content
  • Preserves the original behavior for Reddit-hosted media (images, videos, galleries)
  • Uses a MutationObserver to handle dynamically loaded content
  • Includes error handling and detailed console logging for troubleshooting

Supported Reddit Media Domains (Preserved Behavior)

The following Reddit media domains will maintain their original behavior:

  • i.redd.it
  • v.redd.it
  • preview.redd.it
  • i.reddit.com
  • reddit.com/gallery

Contributing

Feel free to submit issues and enhancement requests!

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

narrowstacks

Version

1.0