mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 01:22:13 -06:00
add cheatcode for turning links into downloads
This commit is contained in:
parent
88f77b8cca
commit
908dd61be5
|
@ -1149,6 +1149,7 @@ function repl_load() {
|
||||||
if (!ret.length)
|
if (!ret.length)
|
||||||
ret = [
|
ret = [
|
||||||
'var v=Object.keys(localStorage); v.sort(); JSON.stringify(v)',
|
'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")'
|
'console.hist.slice(-10).join("\\n")'
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue