Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 1.08 KB

File metadata and controls

17 lines (10 loc) · 1.08 KB

404 Not Found Redirect UserScript

This UserScript detects "404 Not Found" (and similar) errors on webpages and redirects to an archived copy on the Wayback Machine, if available.

Installation

Install a userscript manager extension like Tampermonkey or Greasymonkey on your web browser.

Once you have a userscript manager installed just click this link: install

Website you can test this UserScript on:

https://www.whitehouse.gov/energy/climate-change

https://stevereads.com/cache/ephemeral_web_pages.html

Notice:

Do not post an issue for because the UserScript is redirecting you to the Wayback Machine, even though the website is fully functioning and is not giving an error. It is almost certainly not the UserScript's fault. It is very likely the website is simply giving a 404 http error status to the UserScript, even though this is inaccurate. This is a mistake on the website's part, just exclude the site from the UserScript so it does not execute on the page.