   modalImg.src = this.src;
    }

    // prevents clicking on the image link to zoom (on mobile)
    if (!isMobile()) {
      defAnc.onclick = function() {
        modal.style.display = "block";
        modalImg.src = defImg.src;
      }
    }

    defSpan.appendChild(defAnc);
    defSpan.appendChild(defImg);

    return defSpan;
  }

  function generateEyeSettingSVG() {
    // a bit of a hacky way to do it without dealing with a bunch of raw js
    const svgStr = '<svg id="settings_nsfw_toggle_eye" xmlns=