Internet Archive Saver

This userscript saves every visited page to the Internet Archive Wayback Machine (archive.org), if the page has not already been saved there within the last 30 days. This prevents duplicate saves (We don't want to spam the Internet Archive). Some sites are excluded by default (No need to archive google searches, for example). You can add more @exclude flags on your own.

Author
Flo Pin
Daily installs
0
Total installs
312
Ratings
11 0 0
Version
3.1
Created
2019-10-12
Updated
2023-12-27
License
N/A
Applies to
All sites

This userscript saves every visited page to the Internet Archive Wayback Machine (archive.org), if the page has not already been saved there within the last 30 days. This prevents duplicate saves (We don't want to spam the Internet Archive). Some sites are excluded by default (No need to archive google searches, for example). You can add more @exclude flags yourself.

The archiving status is displayed in the bottom right-hand corner. A = Archived, FIRST = First archival, U = Archiving unneccessary, E = Archiving error. This can be turned off in the settings variables.

Please note that the archiving process from Internet Archive's "Save Page Now" feature is unreliable. Sometimes it just fails or takes a long time. Also there are limits on how many pages you can save (AFAIK 100 per day per IP) and sometimes the IA does maintenance work. And another information: The "First archival" badge is sometimes unreliable too (In reality it isn't the first archival)

V1.0 - Initial version
V1.1 - Small exclude optimizations
V2.0 - Badges! The archiving status gets shown in the bottom-right corner of each visited page. A = Archived, FIRST = First archival, U = Archiving unneccessary, E = Archiving error. This can be turned off in the settings. Version 2.0 also features more detailed console output.
V2.1 - The Wayback Availability JSON API does not work at the moment. A temporarily fix to check for archiving necessity has been implemented. Version 2.1 also features badge bugfixes.
V2.2 - The Wayback Availability JSON API now works again
V3.0 - Better recognition if archiving is necessarry by taking into account that the "Wayback Machine Save Page Now Feature" doesn't know our cookies.
V3.1 - Small optimizations, better error handling