MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / saveToFile

Function saveToFile

scripts/douyin_downloadAllVideoUser.js:53–59  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

51 };
52
53 var saveToFile = function (text) {
54 var blob = new Blob([text], { type: "text/plain" });
55 var a = document.createElement("a");
56 a.href = window.URL.createObjectURL(blob);
57 a.download = "douyin-video-links.txt";
58 a.click();
59 };
60
61 var run = async function () {
62 var result = [];

Callers 1

runFunction · 0.85

Calls 1

clickMethod · 0.80

Tested by

no test coverage detected