-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
324 lines (312 loc) · 11.1 KB
/
index.html
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
<!DOCTYPE html>
<html>
<head>
<title>Downloader</title>
<link rel="icon"href="Etc/download.png" type="image/x-icon"/>
<meta charset='UTF-8' />
<meta content='width=device-width, user-scalable=no' name='viewport' />
<meta charset='utf-8' content='text/html' http-equiv='content-type' />
<meta content='Etc/download.png' property='og:image' />
<link href='Etc/download.png' rel='shortcut icon' type='image/vnd.microsoft.icon' />
<link href='Etc/download.png' rel='apple-touch-icon' />
<link crossorigin='anonymous' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css' integrity='sha512-MV7K8+y+gLIBoVD59lQIYicR65iaqukzvf/nwasF0nqhPay5w/9lJmVM2hMDcnK1OnMGCdVK+iQrJ7lzPJQd1w==' referrerpolicy='no-referrer' rel='stylesheet' />
<link href='css/main.css' media='all' rel='stylesheet' type='text/css' />
<script charset='utf-8' src='js/popup.js' type='text/javascript'></script>
<script charset='utf-8' src='js/share.js' type='text/javascript'></script>
<title>All in one Video Downloader</title>
<meta charset='UTF-8' />
<meta content='width=device-width, user-scalable=no' name='viewport' />
<link href='as.webmanifest' rel='manifest' />
<style id='page-skin-1' type='text/css'>
<!--
*{box-sizing: border-box;}
body{margin:0;}
#cont{padding:10px;}
.mb5{
margin-bottom:10px;
margin-top:13px;
margin-left:5px;
margin-right:5px;
}
-->
</style>
<meta name='google-adsense-platform-account' content='ca-host-pub-1556223355139109' />
<meta name='google-adsense-platform-domain' content='infolite.com' />
<script type="text/javascript" language="javascript">
// Supply ads personalization default for EEA readers
// See https://www.blogger.com/go/adspersonalization
adsbygoogle = window.adsbygoogle || [];
if (typeof adsbygoogle.requestNonPersonalizedAds === 'undefined') {
adsbygoogle.requestNonPersonalizedAds = 1;
}
</script>
</head>
<body>
<div class='white pad-10 shadow bg-red' style='display: flex;align-items: center;margin-bottom: 5px;'>
<span class='josefin-font f-20' style='flex: 1;margin-left: 3px;margin-top: 2px;'>Multi Downloder</span>
<a href="https://kaviyarasan-1997.github.io/Portfolios/" target="_blank" style="text-decoration: none;margin-right: 5px"><img style="height: 36px;width: 36px;border-radius: 50%;border: 2px solid #fff;" src="Etc/kavin.jpg"/></a>
<a href="main.html" target="_blank" style="text-decoration: none;margin-right: 5px"><img style="height: 36px;width: 36px;border-radius: 50%;border: 2px solid #fff;" src="Etc/download.png"/></a>
</div>
<div id='cont'>
<div class='pad-15 alert-red'>
<i class='fa-brands f-20 fa-youtube'></i><b class='f-20 centre margin-5 black josefin-font'> Youtube Videos Downloader</b><br />
<input class='pad-10 input-red josefin-font f-16 black mb5' id='ytl' placeholder='Enter youtube video url...' style='width: 92%;' type='text' /><br />
<button class='bg-red btn margin-5 white shadow josefin-font pad-10 f-16 radius-5 active' id='ytb' onclick='utub()'>Download<i class='fa-solid fa-down-long' style='margin-left:4px;font-size:16px'></i></button>
</div><br /><br />
<div class='pad-15 alert-blue'>
<i class='fa-brands f-20 fa-instagram'></i>
<b class='f-20 centre margin-5 black josefin-font'>Instagram Videos Downloader</b><br />
<input class='pad-10 input-blue josefin-font f-16 black mb5' id='itl' placeholder='Enter instagram link... [reels, posts, videos, igtv]' style='width: 92%;' type='text' /><br />
<button class='bg-blue btn margin-5 white shadow josefin-font pad-10 f-16 radius-5 active' id='ytb' onclick='insta()'>Download<i class='fa-solid fa-down-long' style='margin-left:4px;font-size:16px'></i></button>
</div><br /><br />
<div class='pad-15 alert-blue'>
<i class='fa-brands f-20 fa-facebook'></i>
<b class='f-20 centre margin-5 black josefin-font'>Facebook Videos Downloader</b><br />
<input class='pad-10 input-blue josefin-font f-16 black mb5' id='ftl' placeholder='Enter facebook link...' style='width: 92%;' type='text' /><br />
<button class='bg-blue btn margin-5 white shadow josefin-font pad-10 f-16 radius-5 active' id='ftb' onclick='fcbk()'>Download<i class='fa-solid fa-down-long' style='margin-left:4px;font-size:16px'></i></button>
</div>
</div>
<div class='no-items section' id='required'></div>
<script>
const options = {
method: 'GET',
headers: {
'X-RapidAPI-Key': '3a6008168fmshc89e2b9e019262ap1db9f8jsne1aad62d8bff',
'X-RapidAPI-Host': 'yt-api.p.rapidapi.com'
}
};
function utub() {
var url = document.getElementById("ytl").value.trim();
var id, i, usp;
var loader = as.loader();
loader.show();
try {
i = new URL("/", url);
usp = new URLSearchParams(url);
}
catch(err) {
loader.hide();
as.alert({
icon: true,
title: "Error",
text: "Please enter valid youtube video/shorts url."
});
}
if(usp.has("https://m.youtube.com/watch?v") || usp.has("https://www.youtube.com/watch?v")){
if(usp.has("https://m.youtube.com/watch?v")){
id = usp.get("https://m.youtube.com/watch?v");
}else{
id = usp.get("https://www.youtube.com/watch?v");
}
}else if(i.origin == "https://youtu.be"){
id = url.slice(17);
}else if(url.slice(19,27) == "/shorts/" || url.slice(21,29) == "/shorts/" || url.slice(23,31) == "/shorts/"){
if(url.slice(19,27) == "/shorts/"){
id = url.slice(27,38);
}else if(url.slice(21,29) == "/shorts/"){
id = url.slice(29,40);
}else{
id = url.slice(31,42);
}
}else{}
var dwns = [];
fetch('https://yt-api.p.rapidapi.com/dl?id='+id, options)
.then(response => response.json())
.then(x => {
var fs = x.formats;
for(var i = 0;i < fs.length;i++){
var f = fs[i];
var dwn = {
html: f.qualityLabel+".mp4",
close: false,
click: function(){
window.open(f.url);
}
}
dwns.push(dwn);
}
var afs = x.adaptiveFormats;
for(var i = 0;i < afs.length;i++){
var af = afs[i];
if(i != 0 && afs[i-1].quality != af.quality){
var dwna = {
html: af.quality+".mp3",
close: false,
click: function(){
window.open(af.url);
}
}
dwns.push(dwna);
}else{i++;}
}
loader.hide();
as.popup({
title: x.title,
titleSize: 20,
image: x.thumbnail[3].url,
imageHeight: 210,
imageWidth: 280,
closeIcon: true,
closeBtn: false,
buttons: dwns
});
})
.catch(err => {
loader.hide();
as.alert({
icon: true,
title: "Error",
text: "Please enter valid youtube video/shorts url."
});
});
}
</script>
<script>
const optionsi = {
method: 'GET',
headers: {
'X-RapidAPI-Key': '3a6008168fmshc89e2b9e019262ap1db9f8jsne1aad62d8bff',
'X-RapidAPI-Host': 'instagram-story-downloader-media-downloader.p.rapidapi.com'
}
};
function insmd(m,x){
as.popup({
text: "Title: "+x.title,
textSize: 18,
closeIcon: true,
closeBtn: false,
buttons: [
{
html: "Download "+m,
click: function(){
window.open(x.media)
},
close: false
}
]
});
}
function insta(){
var loader = as.loader();
loader.show();
var iuid = document.getElementById("itl").value.trim();
fetch('https://instagram-story-downloader-media-downloader.p.rapidapi.com/index?url='+iuid, optionsi)
.then(response => response.json())
.then(x => {
var t = x.Type;
loader.hide();
var m;
if(t == "Post-Image"){
m = "Picture";
insmd(m,x);
}else if(t == "Post-Video"){
m = "Video";
insmd(m,x);
}else if(t == "Carousel"){
var ms = x.media;
var ibtn = [];
ms.forEach(m => {
var io = ms.indexOf(m)+1;
var ib = {
html: "Download Post "+io,
close: false,
click: function(){
window.open(m);
}
}
ibtn.push(ib);
});
as.popup({
text: "Title: "+x.title,
textSize: 18,
closeIcon: true,
closeBtn: false,
buttons: ibtn
})
}else{}
})
.catch(err => {
loader.hide();
as.alert({
title: "Error",
text: "Please enter valid instagram url",
icon: true
});
});
}
</script>
<script>
function fcbk(){
var l = as.loader();
l.show();
var tet = document.getElementById("ftl").value;
const fop = {
method: 'GET',
headers: {
'X-RapidAPI-Key': '3a6008168fmshc89e2b9e019262ap1db9f8jsne1aad62d8bff',
'X-RapidAPI-Host': 'facebook-reel-and-video-downloader.p.rapidapi.com'
}
};
fetch('https://facebook-reel-and-video-downloader.p.rapidapi.com/app/main.php?url='+tet, fop)
.then(response => response.json())
.then(x => {
var ls = x.links;
var btns = [];
for (const [lt, ll] of Object.entries(ls)) {
var btn = {
html: lt,
close: false,
click: function(){
window.open(ll);
}
}
btns.push(btn);
};
as.popup({
image: x.thumbnail,
buttons: btns,
closeIcon: true,
closeBtn: false,
imageHeight: 210,
imageWidth: 280
});
l.hide();
})
.catch(err => {
l.hide();
as.alert({
title: "Error",
text: "Please enter valid facebook video/reel url",
icon: true
});
});
}
</script>
<script>
function abt(){
as.popup({
title:"infolite",
closeBtn: false,
icon:"kavin.jpg",
closeIcon: true
});
}
as_share.init();
</script>
<!--Il est de votre ressort d\x27informer les visiteurs \xe0 propos des cookies utilis\xe9s et des donn\xe9es collect\xe9es sur votre blog. Blogger met \xe0 votre disposition une notification standard que vous pouvez personnaliser, remplacer ou afficher telle quelle sur votre blog. Rendez-vous sur http://www.blogger.com/go/cookiechoices pour obtenir de plus amples informations.-->
<script defer='' src='/js/cookienotice.js'></script>
<script>
document.addEventListener('DOMContentLoaded', function(event) {
window.cookieChoices && cookieChoices.showCookieConsentBar && cookieChoices.showCookieConsentBar(
(window.cookieOptions && cookieOptions.msg) || 'Ce site utilise des cookies provenant de Google pour fournir ses services et analyser le trafic. Votre adresse\xa0IP et votre user-agent, ainsi que des statistiques relatives aux performances et \xe0 la s\xe9curit\xe9, sont transmis \xe0 Google afin d\x27assurer un service de qualit\xe9, de g\xe9n\xe9rer des statistiques d\x27utilisation, et de d\xe9tecter et de r\xe9soudre les probl\xe8mes d\x27abus.',
(window.cookieOptions && cookieOptions.close) || 'OK',
(window.cookieOptions && cookieOptions.learn) || 'En savoir plus',
(window.cookieOptions && cookieOptions.link) || 'https://www.blogger.com/go/blogspot-cookies');
});
...
<!-- Footer -->
<footer>
DEVELOPER BY: KAVIYARASAN
</footer>
</body>
</html>