{"size": 436, "ext": "js", "max_stars_repo_path": "popup.js", "max_stars_repo_name": "Prabhav-R/codeforcesTaghider-extension", "max_stars_repo_stars_event_min_datetime": "2021-01-03T12:59:29.000Z", "max_stars_repo_stars_event_max_datetime": "2021-01-03T12:59:29.000Z", "max_issues_repo_path": "popup.js", "max_issues_repo_name": "Prabhav-R/codeforcesTaghider-extension", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "popup.js", "max_forks_repo_name": "Prabhav-R/codeforcesTaghider-extension", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 27.25, "max_line_length": 80, "alphanum_fraction": 0.6032110092}
document.addEventListener("DOMContentLoaded", function () {
  const toggl = document.querySelector(".lever");

  chrome.storage.sync.get("hide", function (data) {
    if (data.hide) {
      toggl.click();
    }

    toggl.addEventListener("click", (e) => {
      chrome.tabs.query({ active: true, currentWindow: true }, function (tabs) {
        chrome.tabs.executeScript(tabs[0].id, { file: "toggle.js" });
      });
    });
  });
});
