function isVisible()

in src/content_script.js [520:527]


function isVisible(target) {
  const currentComputedStyle = window.getComputedStyle(target, false);
  const styleTransform = (currentComputedStyle.getPropertyValue("transform") === "matrix(1, 0, 0, 0, 0, 0)");
  const styleHidden = (currentComputedStyle.getPropertyValue("visibility") === "hidden");
  const styleDisplayNone = (currentComputedStyle.getPropertyValue("display") === "none");
  if (styleTransform || styleHidden || styleDisplayNone) return false;
  return true;
}