Calculator Tools Calculator Tools
Create

YouTube Video Downloader

Nov 22, 2023

About this app

Download videos from YouTube easily.

YouTube Video Downloader 🎥 YouTube Video Downloader Download

Related apps

Put this on your site

Source

                    <html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">

<title>YouTube Video Downloader</title>
<meta name="description" content="Download videos from YouTube easily.">
<meta name="keywords" content="YouTube, downloader, video, download">

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Righteous&display=swap" rel="stylesheet">
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">

<script type="text/javascript">
try {
document.addEventListener("DOMContentLoaded", function() {
$('#downloadBtn').click(function() {
var videoURL = $('#videoURL').val().trim();
var videoId = videoURL.split('v=')[1];
var ampersandPosition = videoId.indexOf('&');
if(ampersandPosition != -1) {
videoId = videoId.substring(0, ampersandPosition);
}

if(videoId) {
$('#videoId').text('Video ID: ' + videoId);
$('#info').text('⚠️ Download functionality is disabled due to YouTube policies.');
} else {
$('#videoId').text('Invalid YouTube URL.');
$('#info').text('');
}
});
});
} catch (error) {
throw error;
}
</script>

<style>
body {
font-family: 'Righteous', sans-serif;
background: linear-gradient(135deg, #6e8efb, #a777e3);
color: #fff;
}
#main-container {
margin-top: 50px;
text-align: center;
}
.title {
font-family: 'Dancing Script', cursive;
font-size: 2em;
margin-bottom: 20px;
}
.form-control {
text-align: center;
margin-bottom: 10px;
}
#videoId {
margin-top: 10px;
}
#info {
color: #ffcc00;
margin-top: 10px;
}
.btn {
background-color: #fff;
color: #a777e3;
font-weight: bold;
}
.btn:hover {
background-color: #eaeaea;
}
.fa {
margin-right: 5px;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<div class="title">🎥 YouTube Video Downloader</div>
<div class="input-group mb-3">
<input type="text" id="videoURL" class="form-control" placeholder="Enter YouTube Video URL" aria-label="Enter YouTube Video URL">
<button class="btn btn-outline-secondary" type="button" id="downloadBtn"><i class="fa fa-download"></i>Download</button>
</div>
<div id="videoId"></div>
<div id="info"></div>
</div>
</body>
</html>