A simple Chrome extension to save and manage website leads (URLs).
Chrome Lead Manager is a lightweight and user-friendly Chrome extension designed to help users save and manage website leads efficiently. Whether you're conducting research, managing projects, or bookmarking important URLs, this extension provides a seamless way to organize and access your leads.
-
Clone the repository:
git clone https://github.com/nipuna-lakruwan/chrome-lead-manager.git
-
Navigate to the project directory:
cd chrome-lead-manager
-
Install the required dependencies:
npm install
-
Build the project:
npm run build
-
Open Chrome and navigate to chrome://extensions/
-
Enable “Developer mode” by toggling the switch in the top right corner.
-
Click on “Load unpacked” and select the dist folder from the project directory.
Once the extension is installed:
- Click on the extension icon in the Chrome toolbar to open the popup interface.
- To save a URL:
- Enter the URL in the text field and click SAVE INPUT.
- Alternatively, click SAVE TAB to save the URL of the current active tab.
- View your saved leads in the list displayed in the popup.
- To delete all saved leads, double-click the DELETE ALL button.
- Popup Interface: Displays a popup (index.html) when the extension icon is clicked.
- Saving Leads:
- Enter a URL in the text field and click SAVE INPUT.
- Click SAVE TAB to save the current active tab’s URL.
- Viewing Leads: Displays saved URLs in a list.
- Deleting Leads: Double-click DELETE ALL to clear saved leads.
To contribute or customize the extension:
-
Fork the repository and clone it to your local machine.
-
Create a new branch for your feature or bug fix:
git checkout -b my-feature-branch
-
Make changes in the codebase.
-
Test changes using:
npm run dev
-
Commit changes:
git commit -m 'Add some feature'
-
Push your changes:
git push origin my-feature-branch
-
Open a pull request.
- Load the extension in Chrome and manually test saving, viewing, and deleting leads.
- Verify behavior in different scenarios, e.g., saving duplicate URLs or handling invalid inputs.
-
Write unit tests for JavaScript functions in index.js.
-
Use a testing framework like Jest:
npm run test
If you encounter issues:
- Check the browser console for errors (right-click on the popup and select “Inspect”).
- Ensure all dependencies are installed correctly by running npm install.
- Verify the manifest.json file is configured properly.
- Refer to the Chrome Extension Documentation for additional guidance.
- manifest.json: Declares the extension setup with manifest version 3 and permissions.
- vite.config.js: Configures Vite for bundling and development.
- package.json: Lists project scripts and dependencies for development.
- index.html: Contains the UI for the popup, referencing index.css and index.js.
- index.css: Defines basic styles for the popup.
- index.js: Manages lead data using localStorage and interacts with the Chrome tabs API to save the current tab.
-
Install dependencies:
npm install
-
Build or serve with Vite:
npm run build npm run dev
-
Load the dist folder as an unpacked extension in Chrome.
Contributions are welcome! Please follow these steps:
-
Fork the repository.
-
Create a new branch:
git checkout -b my-feature-branch
-
Make changes and commit:
git commit -m 'Add some feature'
-
Push to the branch:
git push origin my-feature-branch
-
Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
For any inquiries or feedback, please contact Nipuna-Lakruwan.