Auto Archive Website

Automatically saves pages to Internet Archive while browsing the web.

当前为 2020-04-06 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Auto Archive Website
  3. // @description Automatically saves pages to Internet Archive while browsing the web.
  4. // @namespace Auto Archive Website by BebiBear
  5. // @run-at document-start
  6. // @match http://*/*
  7. // @match https://*/*
  8. // @exclude http://web.archive.org/*
  9. // @exclude https://web.archive.org/*
  10. // @version 1.0.0
  11. // @grant GM.xmlHttpRequest
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. GM.xmlHttpRequest({
  16. method: 'GET',
  17. url: 'https://web.archive.org/save/' + location.href,
  18. onload: function(response) {
  19. if (response.status == 200) {
  20. console.log('Website saved to Internet Archive');
  21. }
  22. }
  23. });
  24. })();