
gittech. site
for different kinds of informations and explorations.
[What I built in 30 mins with Cursor]: Archive.is browser extension
Published at
Jan 3, 2025
Main Article
Archive Redirect Extension
A Chrome extension that helps preserve web content by automatically redirecting specified URLs to archived versions on archive.is. This helps ensure long-term access to web content that might otherwise become unavailable due to link rot, server outages, or content changes.
Features
- Configure custom URL patterns for automatic archival
- View both archived and original versions of pages
- Easy-to-use banner for returning to original content
- Supports multiple archive.is domains for reliability
- Preserves original URLs in browser history
Why Use Web Archives?
- Preserve important web content for future reference
- Access historical versions of web pages
- Ensure citation stability for research and documentation
- Guard against link rot and content changes
- Create reliable, permanent references to web content
Installation
- Clone this repository or download the source code
- Open Chrome and navigate to
chrome://extensions/
- Enable "Developer mode" in the top right
- Click "Load unpacked" and select the extension directory
- The extension icon should appear in your Chrome toolbar
Development
If you want to contribute or modify the extension:
# Install dependencies
npm install
# Run linter
npm run lint
# Fix linting issues
npm run lint:fix
Configuration
- Click the extension icon to open the options page
- Add URL patterns for sites you want to automatically go to archive versions of
- Patterns support wildcards (e.g.,
https://example.com/*
)
How It Works
When you visit a URL matching your configured patterns, the extension will:
- Redirect to the archived version on archive.is
- Show a banner allowing you to return to the original page
- Preserve the original URL in your browser history
Contributing
Contributions are welcome! Please ensure you:
- Follow the existing code style
- Add appropriate tests
- Update documentation as needed
- Run linting before submitting PRs
License
This project is licensed under the MIT License - see the LICENSE file for details.