mirror of
https://github.com/9001/copyparty.git
synced 2026-03-30 12:02:58 +10:00
add cheatcode for turning links into downloads
This commit is contained in:
@@ -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")'
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user