This README provides a step-by-step guide on how to install a Chrome extension that you've downloaded from GitHub.
- Prerequisites
- Installing Git
- Step 1: Clone the GitHub Repository
- Step 2: Navigate to the Extension Folder
- Step 3: Open Chrome and Navigate to Extensions Page
- Step 4: Enable Developer Mode
- Step 5: Load Unpacked Extension
- Step 6: Select the Extension Folder
- Running on your Chrome
- Need Help?
- Google Chrome browser
- Git installed on your machine
If you don't have Git installed on your machine, you can follow the official installation guide here.
First, clone the GitHub repository containing the Chrome extension to your local machine. Open your terminal and run the following command:
git clone https://github.com/SolPal/chrome-extension.git
Navigate to the folder where the Chrome extension code is located. This is usually the root directory of the cloned repository, but it might be in a subfolder.
cd chrome-extendion
Open Google Chrome and go to the Extensions page. You can either navigate to chrome://extensions/
or click on the menu icon (three vertical dots) in the upper-right corner, then go to More Tools
> Extensions
.
On the Extensions page, you'll find a toggle switch for "Developer mode" in the top-right corner. Turn it on.
Click the "Load unpacked" button that appears after you enable Developer mode. This will open a file dialog.
In the file dialog, navigate to the folder where you've cloned the GitHub repository. Select the folder and click "Open."
READ THIS NEXT SECTION CAREFULLY BECAUSE THERE ARE SOME TIPS THAT WILL SAVE YOU TIME WHILST DEVELOPING YOUR EXTENSION!
To get your extension running on Chrome, you'll need to do a couple (easy) steps. Firstly, run the build command, which uses vite to build and output to the dist
folder.
npm run build
From here, open Chrome and go to chrome://extensions
, then hit Load Unpacked
and choose the newly made dist
directory. Assuming no errors, voila! You're in.
Follow me on twitter.com/engineergomes and drop me a message. I'm here to help. It's what I enjoy the most (aside from shipping products, obviously). Reach out, always.
This project is based on the React Tailwind Chrome Extension Template by dougwithseismic. Special thanks to the original author for providing the template.