Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
sj11223 authored Sep 25, 2022
1 parent 470e635 commit 58d30e8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,15 @@
if (document.getElementById('ytlink').value == ""){
alert("ENTER A YOUTUBE VIDEO URL");
}
else if (sentence.includes('youtu.be')){
var result = sentence.replace("https://youtu.be/", "https://www.youtube.com/watch?v=");
document.getElementById('ytlink').value = result;
var value1 = document.getElementById("ytlink").value;
const str = value1;
const after_ = str.substring(str.indexOf('=') + 1);
const valfinal = "https://www.youtubethumbnaildownloaderonline.com/?id=" + after_;
window.open(valfinal,'_blank');
}
else {
var value = document.getElementById("ytlink").value;
const str = value;
Expand Down

1 comment on commit 58d30e8

@vercel
Copy link

@vercel vercel bot commented on 58d30e8 Sep 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.