// Regexes here are based on the ones from https://github.com/mattwright324/youtube-metadata/blob/master/js/shared.js#L8-L14
letpatterns=[
@@ -102,6 +183,8 @@ button[disabled] {
console.log(newVid);
if (!newVid){
document.getElementById("data").innerHTML=`<span style="color:red;">That doesn't look like a valid video ID.</span>`;
document.getElementById("but").disabled=false;
document.getElementById("but").innerHTML="Search for Captures";
returnfalse;
}
document.getElementById("int").innerHTML=`<br>Interpreting that URL as video ID ${newVid}`;
@@ -179,6 +262,7 @@ button[disabled] {
document.getElementById("data").innerHTML="<span class='red'>this code should be unreachable - please report this issue and provide a way to reproduce</span>";
}
}
console.log(localStorage.getItem("dark"));
</script>
</head>
<body>
@@ -205,11 +289,18 @@ button[disabled] {
</div>
<divid="warning">
<b>I take no responsibility for any data loss as a result of incorrect values.</b> Verify the values for any important videos!