79161317

Date: 2024-11-06 04:20:52
Score: 0.5
Natty:
Report link

For everyone who looks for an easy solution, here it is.

  function openModal() {
    var pu = document.getElementsByClassName('fd-focus-visible-applied');
    var modal = pu[0].getElementsByClassName('fd-modal');
    modal[0].classList.add('fd-is-open');
    
  }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mad