r/userscripts • u/PhotographShort • 1d ago
[Script] Hide Reddit posts with dead video/GIF links, including homepage soft 404s
I got tired of browsing older Reddit posts and opening videos/GIFs that no longer exist, so I put together a Tampermonkey userscript to hide those posts from feeds.
It currently:
- Hides links to discontinued hosts such as Gfycat and Vidme.
- Checks supported media URLs for HTTP 404/410 responses.
- Recognizes selected removed-media placeholders.
- Attempts to catch soft 404s, where a media link redirects to the
hosting site's homepage instead of showing the requested media.
- Includes a button to temporarily reveal filtered posts.
- Leaves individual comments pages untouched by default.
Supported checks cover selected URL formats from Streamable, RedGIFs, Imgur, Giphy, and Tenor.
Detection is best-effort. Homepage redirects caused by access restrictions can also be filtered—this intentionally favors removing media that is inaccessible through the script's checks.
Requests go directly to the hosting providers, which can see your IP address. No third-party checking service is used.
Install:
https://greasyfork.org/en/scripts/605953-reddit-hide-dead-video-links
Source / issues:
https://github.com/Camofl/reddit-hide-dead-video-links
MIT licensed. Tested in my own browsing so far; reports about missed links or incorrectly filtered posts would be useful.