I’m finally getting around to writing up my experience writing a Chrome Extension (that I actually wrote a few months ago).
I wanted to be able to quickly jump to any subreddit using the omnibar, with autocompletion for any subreddits that I’ve visited before.
So, I made a Chrome Extension, triggered by
r <tab>, that opens up a menu to quickly jump to a subreddit.
Any subreddit that you jump to using the extension is saved unless the subreddit doesn’t exist.
The extension checks the returned headers for the HTTP code and ignores
302s (missing subreddits and the subreddit search page).
When typing in a subreddit name, the extension uses substring matching to search for similarly named subreddits that you’ve visited before. It then sorts those subreddits by the number of times that you’ve visited each one.
Finally, there is an options menu to clear the stored data, and an option to clear only certain saved subreddits.
Overall it was a fun program to write and maybe I’ll get around to adding more features to it later. There’s a to-do list in the git repository of possible modifications that I can do.