Web Archive

archive current page on archive.is and archive.org

  1. // ==UserScript==
  2. // @name Web Archive
  3. // @namespace
  4. // @description archive current page on archive.is and archive.org
  5. // @version 1.0
  6. // @match *://*/*
  7. // @grant GM_openInTab
  8. // ==/UserScript==
  9.  
  10.  
  11. (function () {
  12. document.addEventListener('keydown', function (e) {
  13. // pressed alt+a
  14. if (e.keyCode == 65 && !e.shiftKey && !e.ctrlKey && e.altKey && !e.metaKey) {
  15.  
  16. var archiveis_url = 'https://archive.is/?run=1&url=' + encodeURIComponent(document.location);
  17. var archiveorg_url = 'https://web.archive.org/save/' + document.location;
  18. GM_openInTab(archiveis_url, true);
  19. GM_openInTab(archiveorg_url, true);
  20. }
  21. }, false);
  22. })();
  23.