{"id":31653939,"url":"https://github.com/icedmoca/404-archive-redirect","last_synced_at":"2026-04-18T11:32:10.428Z","repository":{"id":315832494,"uuid":"1060975225","full_name":"icedmoca/404-archive-redirect","owner":"icedmoca","description":"Browser extension that intercepts 404 errors and redirects to a custom page with  archive links.","archived":false,"fork":false,"pushed_at":"2025-09-27T10:59:49.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-07T11:19:28.891Z","etag":null,"topics":["404-page","extension-chrome"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/icedmoca.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-21T01:27:06.000Z","updated_at":"2025-09-27T10:59:52.000Z","dependencies_parsed_at":"2025-09-21T03:27:29.638Z","dependency_job_id":"79c702c9-3cd7-4b26-a9a5-9047164c996d","html_url":"https://github.com/icedmoca/404-archive-redirect","commit_stats":null,"previous_names":["icedmoca/404-archive-redirect"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/icedmoca/404-archive-redirect","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icedmoca%2F404-archive-redirect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icedmoca%2F404-archive-redirect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icedmoca%2F404-archive-redirect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icedmoca%2F404-archive-redirect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/icedmoca","download_url":"https://codeload.github.com/icedmoca/404-archive-redirect/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icedmoca%2F404-archive-redirect/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31966950,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["404-page","extension-chrome"],"created_at":"2025-10-07T11:11:05.833Z","updated_at":"2026-04-18T11:32:10.410Z","avatar_url":"https://github.com/icedmoca.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 404-archive-redirect\n\n\u003e A Chromium extension that intercepts 404 errors and redirects to a custom page with  archive links.\n\n\u003e [!WARNING]\n This extension redirects 404 pages to archived versions. Archived pages may contain outdated, inaccurate, or insecure content. Use at your own risk.\n\n**View 404 Page** https://icedmoca.github.io/404-archive-redirect/404.html\n\n**View 404 Page If you have the extension installed** http://distrowatch.com/images/cgfjoewdlbc/blackarch.png\n\n## Installation\n\n1. Open Chromium/Chrome browser\n2. Navigate to `chrome://extensions/`\n3. Enable \"Developer mode\" (toggle in top right)\n4. Click \"Load unpacked\"\n5. Select the extension folder (`404-archive-redirect`)\n6. The extension should now be loaded and active\n\n## How It Works\n\n```mermaid\nflowchart TD\n  A[User clicks a link] --\u003e B[Background Service Worker background.js]\n  B --\u003e|Checks webRequest| C{Status 404?}\n  C --\u003e|No| D[Load normal page]\n  C --\u003e|Yes| E[Redirect to custom 404.html]\n  E --\u003e F[404.html loads - Dark terminal theme]\n  F --\u003e G[Show Original URL]\n  F --\u003e H[Archive Links]\n  F --\u003e I[\"Go Back\" button]\n  F --\u003e J[Styled with style.css]\n```\n\n\n## Features\n\n- ✅ Intercepts all 404 errors automatically\n- ✅ Modern hacker-terminal UI design\n- ✅ Archive services table (Wayback Machine, Ghost Archive, UK Web Archive, etc.)\n- ✅ Dynamic capture count indicator for Wayback Machine (+9 badge)\n- ✅ Copy buttons for each archive service URL\n- ✅ One-click URL copying to clipboard\n- ✅ Responsive design for mobile/desktop\n- ✅ Animated visual effects\n- ✅ Original URL preservation and display\n\n## Testing\n\nTo test the extension:\n\n1. **Load the extension** in Chrome/Chromium:\n   - Go to `chrome://extensions/`\n   - Enable \"Developer mode\"\n   - Click \"Load unpacked\" and select this folder\n\n2. **Test with 404 pages**:\n   - Visit `chrome-extension://[extension-id]/test.html` (use the test.html)\n   - Or visit a non-existent URL (e.g., `https://example.com/nonexistent-page-12345`)\n   - The extension should redirect to the custom 404 page\n\n3. **Debug if needed**:\n   - Open Developer Tools (F12)\n   - Check the Console tab for debug messages\n   - Look for messages like \"404 detected for:\" and \"Redirecting to:\"\n\n4. **Test functionality**:\n   - Use \"Go Back\" to return to the previous page (now works in one click!)\n   - Click the copy button (📋) next to the URL to copy it to clipboard\n   - Try the archive services in the table - click \"View\" to open or \"📋\" to copy the archive URL\n   - Check that the original URL is displayed correctly\n\n## Archive Services Included\n\nThe extension provides access to multiple archiving services:\n\n| Service | Description | Actions |\n|---------|-------------|---------|\n| **Wayback Machine** | Internet Archive's comprehensive web archiving service | View / Copy URL |\n| **Ghost Archive** | Social media content archiving | View / Copy URL |\n| **UK Web Archive** | British Library national archive | View / Copy URL |\n| **Library of Congress** | Search Library of Congress digital collections | View / Copy URL |\n| **Common Crawl** | Search through raw archived web crawls | View / Copy URL |\n\nEach service provides both a direct link (opens in new tab) and a copy button for the archive URL.\n\n## Permissions Used\n\n- `webRequest`: Detect HTTP status codes  \n- `tabs`: Redirect current tab to 404.html  \n- `storage`: Save user preferences (future features)  \n- `\u003call_urls\u003e`: Required to listen across all domains \n\n## Browser Compatibility\n\n- Chromium/Chrome (Manifest V3)\n- Edge (Chromium-based)\n- Other Chromium-based browsers\n\n## Files Structure\n\n```\n404-archive-redirect/\n├── manifest.json      # Extension manifest (MV3)\n├── background.js      # Service worker for intercepting 404s\n├── 404.html          # Custom 404 page\n├── script.js         # JavaScript for 404 page functionality\n├── style.css         # Hacker-terminal inspired styling\n├── test.html         # Test page for debugging\n└── README.md         # This file\n```\n\n\n## Customization\n\nYou can modify:\n- `style.css`: Change colors, fonts, animations\n- `404.html`: Modify text content and layout\n- `background.js`: Adjust interception logic\n- `manifest.json`: Update permissions or metadata\n\n## To-Do\n- [ ] Custom Themes  \n- [ ] Theme sync with current Chrome theme  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficedmoca%2F404-archive-redirect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficedmoca%2F404-archive-redirect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficedmoca%2F404-archive-redirect/lists"}