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

    This is great! Thank you for taking the time to make it so.

    Anyways, since you’re into fixing Lemmy, may I make a suggestion? What about a simple script to fix the language selector annoyance that plagues this platform?

    I’ve to choose the post language at every single post/comment I write. Since Lemmy developers seem to be inept when it comes to basic user friendliness maybe a script that selects “English” automatically would be appreciated.

    Seriously, this is bullshit and the person who designed this should have a few points removed from their social credit score. Wasn’t it obvious that a dropdown under settings to pick the default language was necessary? :P

    Even worse, when I edit a comment/post I suddenly have to pick the language again.

    Update: I just remembered that at some point I even filled this https://github.com/LemmyNet/lemmy-ui/issues/2317

    Thank you.

    • RobotToaster@mander.xyz
      link
      fedilink
      arrow-up
      4
      ·
      10 months ago

      I really don’t get that either. They went to the trouble of adding a warning in settings, that deselecting undefined from shown languages will hide most content, but chose not to add an account level default language option.

    • 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