• afoutopatisa@lemmy.worldOP
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    10 months ago

    This should be as easy as document.getElementsByClassName("form-select w-auto d-inline-block")[0].selectedIndex = 38, I gave it a try and works on console but can’t get it to select after DOM load. I’ll give it another try once I have the time and create a separate script as this is outside the scope of the original script ;)

    • TCB13@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      10 months ago

      Doesn’t seem to work on mine tho.

      Uncaught TypeError: Cannot set properties of undefined (setting 'selectedIndex')
          at :1:87