A Chrome extension that helps you identify dead and locked links on web pages in real time. The extension also provides a popup interface to view and manage sessions of identified broken and locked links.
- Real-Time Analysis: Marks links on a webpage as ✅ (healthy), ❌ (dead), or 🔒 (locked).
- Session History: Collects and displays broken/locked links for easy access later.
- Clear Session Data: Easily clear session data via the popup interface.
First, clone or download the source code for this project to your local machine.
git clone https://github.com/your-repository-here.gitAlternatively, download the ZIP file and extract it.
- Open Google Chrome.
- Navigate to the Extensions page:
- Open a new tab and go to:
chrome://extensions - Alternatively, click the three-dot menu in the top-right corner → Hover over More Tools → Click Extensions.
- Open a new tab and go to:
- Enable Developer Mode using the toggle in the top-right corner.
- Click the Load unpacked button on the Extensions page.
- In the file selection dialog, locate and select the root folder of this project (where
manifest.jsonis located).
- Open a webpage with links.
- The extension will highlight dead (
❌), locked (🔒), and healthy (✅) links on the page. - Click on the extension icon in the Chrome toolbar to open the popup interface and view session data.
The background.js file listens for messages from the content script and handles the following:
- Checks the status of URLs by making
HEADrequests. - Manages session storage using Chrome's
chrome.storage.sessionto log broken and locked links. - Clears session data when required.
The content.js file is injected into web pages and:
- Iterates over all
<a>elements (links) on a page. - Sends each link URL to the background script for validation.
- Highlights links on the DOM:
✅Healthy links are marked with a checkmark.❌Dead links are marked with an "X" and a red border.🔒Locked links are marked with a lock icon and a blue border.
The popup.html and popup.js files handle:
- Displaying session data that categorizes broken/locked links by their source URL.
- Clearing session data based on user interaction.
Interested in contributing? Follow these steps:
- Fork the repository.
- Create a feature branch:
git checkout -b feature-name. - Commit your changes:
git commit -m "Add a new feature". - Push to the branch:
git push origin feature-name. - Open a pull request.
This project is licensed under the MIT License.