{"size": 423, "ext": "js", "max_stars_repo_path": "player.js", "max_stars_repo_name": "mangui/webextension-hls", "max_stars_repo_stars_event_min_datetime": "2016-11-28T08:25:14.000Z", "max_stars_repo_stars_event_max_datetime": "2021-06-25T05:50:39.000Z", "max_issues_repo_path": "player.js", "max_issues_repo_name": "mangui/webextension-hls", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "player.js", "max_forks_repo_name": "mangui/webextension-hls", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.8823529412, "max_line_length": 53, "alphanum_fraction": 0.5910165485}

function playM3u8(url){
  if(Hls.isSupported()) {
      var video = document.getElementById('video');
      var hls = new Hls();
      var m3u8Url = decodeURIComponent(url)
      hls.loadSource(m3u8Url);
      hls.attachMedia(video);
      hls.on(Hls.Events.MANIFEST_PARSED,function() {
        video.play();
      });
      document.title = url
    }
}

playM3u8(atob(window.location.href.split("#")[1]))
