Skip to content

Commit b64a33f

Browse files
committed
fix luanxt
1 parent 5a0ec68 commit b64a33f

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

scripts/getLinkLuanxt.js

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ export default {
9494
?.join("");
9595

9696
let html = `<div class="container">
97-
<h2>Useful-scripts get link: ${source}</h2>
97+
<h2>Useful-scripts get link (luanxt)</h2>
98+
<h2>${source}</h2>
9899
99100
<img src="${image}" />
100101
<a href="${link}" target="_blank">${name}-${artist}</a>
@@ -138,7 +139,18 @@ export default {
138139

139140
(() => {
140141
let url = window.prompt(
141-
"Nhập link\nzingmp3 (audio/video), nhaccuatui, youtube,..",
142+
"Hỗ trợ:\n+ " +
143+
[
144+
"Zing MP3, Zing Video Clip, Zing TV",
145+
"NhacCuaTui",
146+
"YouTube",
147+
"SoundCloud",
148+
"Nhac.vn",
149+
"ChiaSeNhac.vn",
150+
"Facebook Video",
151+
"Keeng Audio, Keeng Video, Keeng Phim",
152+
].join("\n+ ") +
153+
"\n\nNhập link",
142154
""
143155
);
144156
if (url) {
@@ -150,15 +162,15 @@ export default {
150162
",left=" +
151163
(screen.width - 840)
152164
);
153-
win.document.body.innerHTML = `<img src="https://upload.wikimedia.org/wikipedia/commons/b/b1/Loading_icon.gif?20151024034921" style="width:100%"/>`;
165+
win.document.body.innerHTML = `<h1>Đang get link...</h1><img src="https://upload.wikimedia.org/wikipedia/commons/b/b1/Loading_icon.gif?20151024034921" style="width:100%"/>`;
154166

155167
getLink(
156168
url,
157169
(json) => renderResult(json, win),
158170
(e) => {
159171
console.log(e);
160-
win.close();
161172
alert("ERROR: " + e);
173+
win.close();
162174
}
163175
);
164176
}

0 commit comments

Comments
 (0)