<!DOCTYPE html>
<html>
<head>
<title>VTT</title>
</head>
<body>
<pre id="vtt-content"></pre>

<script>
var url = new URL(window.location.href);
var sub = url.searchParams.get("sub");
fetch(sub)
.then(response => response.text())
.then(vtt => {
document.getElementById('vtt-content').innerText = vtt;
})
.catch(error => console.error('Error:', error));
</script>
</body>
</html>