forked from lovmoon3k/useful-script
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathyoutube_downloadVideo.js
45 lines (42 loc) · 1.12 KB
/
youtube_downloadVideo.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
export default {
icon: `https://www.google.com/s2/favicons?domain=youtube.com`,
name: {
en: "Download youtube video (bypass 18+)",
vi: "Tải video youtube (bypass 18+)",
},
description: {
en: "Bypass age restriction, without login",
vi: "Tải cả video giới hạn độ tuổi, không cần đăng nhập",
},
blackList: [],
whiteList: ["*://*.youtube.com/*"],
func: function () {
let options = [
{
name: "yt1s.com",
url: "https://yt1s.com/vi/youtube-to-mp4?q=",
},
{
name: "10downloader.com",
url: "https://10downloader.com/download?v=",
},
{
name: "9xbuddy.com",
url: "https://9xbuddy.com/process?url=",
},
{
name: "ymp4.com",
url: "https://ymp4.download/en50/?url=/",
},
];
let choose = prompt(
"Tải video youtube: \n\n" +
options.map((_, i) => `${i}: ${_.name}`).join("\n") +
"\n\nNhập lựa chọn:",
0
);
if (choose != null && choose >= 0 && choose < options.length) {
window.open(options[choose].url + location.href);
}
},
};