aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRahiel Kasim <rahielkasim@gmail.com>2017-11-03 14:50:31 +0100
committerRahiel Kasim <rahielkasim@gmail.com>2017-11-03 14:50:31 +0100
commit2788b2720b05d8b89ed3b2865595bc162dcf6b94 (patch)
tree63079fd88d7f9e609ac314374a672ab19bc8f1bf
parentd728f961fa9ab05e59a038f3f8bd1d674469e3d5 (diff)
don't send "anyway" URL parameter to archive.is
I used this to force a recapture of the page on archive.is if it already had a snapshot of the page. This stopped working some time ago. It's better to respect the owner's default of using the last snapshot.
-rw-r--r--src/archiveror.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/archiveror.js b/src/archiveror.js
index 813016a..eed2a6b 100644
--- a/src/archiveror.js
+++ b/src/archiveror.js
@@ -7,7 +7,7 @@ function archive_is(url) {
let request = new XMLHttpRequest();
request.open("POST", "https://archive.is/submit/", true);
request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
- let params = "url=" + encodeURIComponent(url) + "&anyway=1";
+ let params = "url=" + encodeURIComponent(url);
request.onreadystatechange = function () {
if (request.readyState === 4) {
let link = request.response.match(/(https?:\/\/archive.is\/\w+)/)[0];