Skip to content

Commit 1f5ed9f

Browse files
committed
fix
1 parent 1b3d854 commit 1f5ed9f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/youtube_getVideoCaption.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ export default {
6868
}
6969
</style>
7070
<div>
71-
<h3>Captions</h3><br/>
71+
<h3 style="text-align:center">Useful-scripts: Youtube captions</h3><br/>
72+
<h4>${title}</h4><br/>
7273
<ul>
7374
${captions
7475
.map(
@@ -117,8 +118,7 @@ export default {
117118
const data = texts
118119
.map((t) => decodeHtmlEntities(t.textContent))
119120
.join("\n");
120-
alert(data);
121-
// UfsGlobal.Utils.downloadData(data, title + ".txt");
121+
UfsGlobal.Utils.downloadData(data, title + ".txt");
122122
} else if (type === "srt") {
123123
const data = texts
124124
.map((t, i) => {

0 commit comments

Comments
 (0)