Archive.org Wayback Machine - First Archive Version

Adds menu button that returns the earliest capture record of the current webpage, preventing error 404, empty or false captures.

  1. // ==UserScript==
  2. // @name Archive.org Wayback Machine - First Archive Version
  3. // @namespace https://greasyfork.org/en/users/10118-drhouse
  4. // @version 2.0
  5. // @description Adds menu button that returns the earliest capture record of the current webpage, preventing error 404, empty or false captures.
  6. // @include *
  7. // @grant GM_registerMenuCommand
  8. // @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
  9. // @author drhouse
  10. // @icon https://archive.org/images/glogo.jpg
  11. // ==/UserScript==
  12.  
  13. $(document).ready(function () {
  14. GM_registerMenuCommand("Archive First Capture", function() {
  15. if (location.href.toString().indexOf("https://web.archive.org/") == -1){
  16. window.location.href = 'https://web.archive.org/web/1000/' + location;
  17. }
  18. });
  19. });
  20.