Initial commit - Virome API

This commit is contained in:
Your Name
2026-01-10 15:01:21 +01:00
parent 1ae246c7e4
commit 518445dee1
3 changed files with 14 additions and 1 deletions

1
ui.ts
View File

@@ -229,6 +229,7 @@ export const html = `<!DOCTYPE html>
</div>
<div id="ytplayer"></div>
<script>
(function(){var oe=console.error;console.error=function(){var m=arguments[0]||'';if(typeof m==='string'&&(m.includes('postMessage')||m.includes('youtube.com')||m.includes('ERR_BLOCKED')))return;oe.apply(console,arguments)}})();
var tag=document.createElement('script');tag.src='https://www.youtube.com/iframe_api';document.head.appendChild(tag);
var songs=[],player=null,playerReady=false,isPlaying=false,currentIndex=-1,progressInterval=null;
document.getElementById('searchInput').onkeypress=e=>{if(e.key==='Enter')doSearch()};