You will need to install a user script manager extension to install this script.
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.
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.