This is a simple Chrome extension that allows users to change the URL of Reddit pages to their preferred URL. The extension offers four options: R1 Old Reddit ("old.reddit.com"), R2 Normal Reddit ("new.reddit.com"), R3 Reddit Redesign ("sh.reddit.com"), or a custom URL.
- Download the code from this repository (and extract it).
- Open Chrome and go to
chrome://extensions/. - Enable "Developer mode" by toggling the switch in the top right corner.
- Click "Load unpacked" and select the folder containing the extension files.
- The extension should now be installed and active.
After installing the extension, you can access it by clicking on the Reddit URL Changer icon in the Chrome toolbar. This will open the extension popup, which contains a dropdown menu for selecting your preferred Reddit URL.
To change the URL of a Reddit page, simply navigate to the page and open the extension popup. Select your preferred URL from the dropdown menu and click the "Save and Apply" button. The extension will automatically update the URL of the current page to your selected URL.
If you want to use a custom URL, enter it in the "Enter a custom Reddit domain" input field and click the "Add" button. The custom URL will be added to the dropdown menu for future use.
For this code to function properly as soon as you land on reddit.com you must initalize the chrome extension
If you want to contribute to this extension, feel free to open a pull request or submit an issue. Please make sure to follow the code style and conventions used in this repository.
This project is licensed under the MIT License. See the LICENSE file for details.
This extension was created by Abdullah Khan.
I created this because I saw reddit changing and doingng a R3 rdesign and everyone elses chrome extensions sucks. There were bugs, errors, and the UI was terrible and it annoyed me so i made my own
I have used AI to ensure readibility and coherence in my code so other developers know what I am doing
- Cleaner UI, simpler and better!
- Dyanamic Duo (Dark and Light-Mode)
- Custom Url additon and saved so you can use it!
- Transparency of everything (we dont collect ANYTHING!!)
- Transparency in code, anyone can contribute, or view the code. We arent hiding anything (increased trust!)
- Always having support, developer will try his best to add a lot of ideas.
- Accessible to everyone by using latest HTML, and CSS accessibility options with well processed javascript
- Back button on other chrome extensions dont work due to the domain diffculty, our extension remember your last 10 urls LOCALLY and when you click back button puts them there so you dont have to feel frustrated using the new domain (seemless integration)
- Save a default url in the options page so that automatically when you go on reddit.com you can go on to the current page
- Extensive R & D to ensure 100% consistency
The manifest.json file contains metadata about the extension, including its name, version, permissions, and background scripts.
The background.js file contains the code for listening to changes to the #reddit-url select element and updating the saved URL in the chrome.storage.sync API. It also listens for messages from the content script and performs URL redirections when requested.
The options.html file contains the HTML code for the extension popup. It includes a dropdown menu for selecting the preferred Reddit URL, an input field for entering custom URLs, and a "Save and Apply" button for updating the URL of the current page.
The options.js file contains the JavaScript code for handling events in the extension popup. It includes functions for URL validation, error handling, theme toggling, and custom URL handling.
The styles.css file contains the CSS styles for the extension popup. It includes styles for the dropdown menu, input fields, buttons, and error messages.
The terms.html file contains the HTML code for the terms and conditions page. It includes information about the extension's permitted uses, warranties and disclaimers, limitation of liability, indemnification, modifications, termination, governing law, and contact information.
The icon is based off the 3 new icon changes to Reddit
- We had the original Old Reddit icon
- We had the "normal" Reddit icon
- The Rdesigned snoo