From 908dd61be5f216c70092c0a876a9384f90f9d9f7 Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 26 Oct 2021 01:11:07 +0200 Subject: [PATCH] add cheatcode for turning links into downloads --- copyparty/web/util.js | 1 + 1 file changed, 1 insertion(+) diff --git a/copyparty/web/util.js b/copyparty/web/util.js index 63448db0..1dd44828 100644 --- a/copyparty/web/util.js +++ b/copyparty/web/util.js @@ -1149,6 +1149,7 @@ function repl_load() { if (!ret.length) ret = [ 'var v=Object.keys(localStorage); v.sort(); JSON.stringify(v)', + "for (var a of QSA('#files a[id]')) a.setAttribute('download','')", 'console.hist.slice(-10).join("\\n")' ];