Publishing an Extension to the Google Chrome Web Store

I'm at the stage in my journey where I'm constantly researching online for examples and how to do things (shoutout to Stack Overflow for coming in clutch numerous times). Another wretched hive of scum and villainy where I like to search for answers is Reddit. I'm probably part of the minority here, but I enjoyed that place before their big redesign a few years ago. the site went from "dystopian craigslist" (his words, not mine) to "you got social media in my GameFAQs", and it's been downhill ever since. still, modern solutions to modern problems can sometimes be found there, and I decided to try and make my browsing experience a little less infuriating.


Luckily for me, reddit retains their old layout at "old.reddit.com". Everything with the new look at "www.reddit.com" can be accessed by substituting the "www" with "old".


A few years ago, I whipped up a little chrome extension that would load a random subreddit with just a click. It worked well, so naturally I buried it in my GitHub and forgot about it. Today, I wanted to see if I could come up with a similar solution to redirect reddit in the browser to the old layout.


First, I started by figuring out how I wanted to perform the redirection using JavaScript. I used the "window.location.href" property to return the URL of the current page and store it in a value. Then, I created a function to load the page with the "old" by concatenating the original URLs string after ".com/". I used the console in chrome's dev tools to test the code a few times and fix any errors. it works, albeit quite clunkily, but in this case I'm willing to prioritize functionality over polish.


One manifest JSON, a pitiful attempt at a logo, and two lazy screenshots later, my extension was ready to ship.


It has a beard, so it's old.

I went to the chrome developer dashboard, created my developer account, and went through the steps to upload and submit the extension for review. At this time, it's still pending - but you can find the repo for it on my GitHub. You can even download the files and load the package into your chrome browser if you don't feel like waiting for the official release.


This project helped me accomplish three things- apply some new concepts I've been learning in JavaScript, revisit the process of creating, testing, and publishing an extension for Google Chrome, and exercise my mind in the realm of development.