flamingos-cant

An interactive tragedy.

  • 6 Posts
  • 35 Comments
Joined 1 year ago
cake
Cake day: June 12th, 2023

help-circle





  • As someone who spends more money than I should on music from Bandcamp, I’m interested to see if they ever get payments working. I remember people talking about a federated BC alternative, where the 10% platform fee goes to the instance you’re on, when they got bought by that music licensing company.

    Also, first paragraph under “Integrating with the Fediverse”, you put Bandcamp when I think you meant Bandwagon.





  • flamingos-cant@feddit.ukOPtoFeddit UK@feddit.ukNew frontends!
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 months ago

    Unreleated, but I’ve also noticed that sometimes I can’t log in using Photon until I’ve logged in using the “default” web UI, and then coming back to Photon and refreshing fixes it.

    This is probably due to some server instability we’ve had lately. We’ve resolved it, so hopefully it shouldn’t happen again.



  • flamingos-cant@feddit.ukOPtoFeddit UK@feddit.ukNew frontends!
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    3 months ago

    For anyone else annoyed by this, I’ve created a userscipt to auto expand the textarea. It’s not perfect, but it’s better than nothing.

    // ==UserScript==
    // @name        Autoexpand textarea
    // @namespace   Violentmonkey Scripts
    // @match       https://p.feddit.uk/*
    // @grant       none
    // @version     1.0
    // @author      flamingos-cant
    // @description 06/08/2024, 21:05:31
    // ==/UserScript==
    
    function updateHeight(textarea) {
      var text = textarea.target.value;
      var lineHeight = 1.25 * parseFloat(getComputedStyle(document.documentElement).fontSize);
      var taHeight = textarea.target.scrollHeight - 16 * 2;
      var lines = Math.max(Math.ceil(taHeight / lineHeight), 8);
      textarea.target.rows = lines;
    }
    
    setInterval((function () {
      let textareas = document.getElementsByTagName("textarea");
      for (let textarea of textareas) {
        textarea.addEventListener("input", updateHeight);
      }
    }), 2000);