MCPcopy Index your code
hub / github.com/hoothin/UserScripts / saveContent

Function saveContent

DownloadAllContent/DownloadAllContent.user.js:963–972  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

961 }
962
963 function saveContent() {
964 if (win.downloadAllContentSaveAsZip && saveAsZip) {
965 win.downloadAllContentSaveAsZip(rCats, i18n.info.replace("#t#", location.href), content => {
966 saveAs(content, document.title.replace(/[\*\/:<>\?\\\|\r\n,]/g, "_") + ".zip");
967 });
968 } else {
969 var blob = new Blob([i18n.info.replace("#t#", location.href) + "\r\n\r\n" + rCats.join("\r\n\r\n")], {type: "text/plain;charset=utf-8"});
970 saveAs(blob, document.title.replace(/[\*\/:<>\?\\\|\r\n,]/g, "_") + ".txt");
971 }
972 }
973
974 function initTempSave(txtDownContent){
975 var tempSavebtn = txtDownContent.querySelector('#tempSaveTxt');

Callers 2

initTempSaveFunction · 0.85
cbFuncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected