function ExecuteScript(strId)
{
  switch (strId)
  {
      case "6WhUJAcCoz3":
        Script1();
        break;
  }
}

function Script1()
{
  const filename = "Τραγούδι.txt";


var player = GetPlayer();
const textEntry = player.GetVar("TextEntry1");
  var element = document.createElement('a');
  element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(textEntry));
  element.setAttribute('download', filename);

  element.style.display = 'none';
  document.body.appendChild(element);

  element.click();

  document.body.removeChild(element);

}

