text: const htmlDiv = document.getElementById("html");
  const cookieCheckBox = document.getElementById("cookie-pop-up-check-input");
  const signUpCheckBox = document.getElementById("sign-up-pop-up-check-input");
  
  const getCurrentTab = async () => {
    let queryOptions = { active: true, currentWindow: true };
    let [tab] = await chrome.tabs.query(queryOptions);
    return tab;
  };
  
  const sendMessageToContentScript = async (msg) => {
    let tab = await getCurrentTab();
    chrome.tabs.sendMessage(tab.id, msg);
  };
  
  cookieCheckBox.addEventListener("click", (e) => {
    if (e.target.checked) {
      sendMessageToContentScript({ msg: "cookieBlockerChecked" });
    } else {
      sendMessageToContentScript({ msg: "cookieBlockerUnChecked" });
    }
  });
  
  document.addEventListener("DOMContentLoaded", () => {
    chrome.storage.sync.get("blockCookies", (storage) => {
      const checkedState = storage.blockCookies;
      if (checkedState) {
        cookieCheckBox.checked = true;
      } else {
        cookieCheckBox.checked = false;
      }
    });
  });
  