frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Reddit Anywhere – Find Reddit discussions for any webpage

https://chromewebstore.google.com/detail/reddit-anywhere/nbeflmemjddfkijfpiaojbbhgbblbhde
2•smurfysmurf•8mo ago
Hey HN! This is my first development project, and I wanted to share it with you all

I built Reddit Anywhere because I kept manually searching Reddit for discussions about articles and videos I was reading/watching, and I wanted to automate it.

The extension is pretty straightforward: it adds a small Reddit icon to any webpage you're on, and when clicked, it shows relevant Reddit threads discussing that page, or searching for related or relevant topics.

How it works:

-First tries to find the exact URL match on Reddit -If that fails, falls back to looking for discussion based on the page title and domain -For YouTube videos, it extracts the video title and channel name to find more relevant threads -Everything runs in browser

Technically -Built with vanilla JS -Uses Chrome storage API -Implemented Reddit's 0Auth through Chrome identity API -Basic caching to avoid hammering Reddit's API

Some challenges -Reddit's API limits were a pain, so I implemented exponential backoff -I'm still struggling with getting the Reddit icon to display on ALL websites, on some sites it's not viewable

This is a completely free and has no tracking, any feedback is appreciated!