Japanese Speaker. I can read/write some English but not well, so corrections are always appreciated.

プログラミングや音楽に興味があります。最近はEmacsでよく遊んでます。

  • 9 Posts
  • 128 Comments
Joined 2 years ago
cake
Cake day: June 18th, 2023

help-circle
  • nmtaketoLinux@lemmy.mlAuto Typing Script
    link
    fedilink
    arrow-up
    4
    ·
    10 days ago

    I’d write a bookmarklet for that case:

    javascript:
    {
    const name = 'ABC';
    const d = new Date();
    const year = d.getFullYear();
    const month = d.getMonth();
    const date = d.getDate();
    document.activeElement.value = `${year}/${month}/${date} ${name}`;
    void 0;
    }
    

    This bookmarklet inserts the desired text into the currently focused text box. Tested on Lemmy Web UI.











  • Oddly, the endpoint on lemm.el and lemmy.ml return comments:

    > curl 'https://lemm.ee/api/v3/comment/list?post_id=45734814' | jq '.comments.[] | .comment.content[:50]'
    "Yeah, you're right. I didn't read enough of the do"
    "Thank you for the tip ... but whatever I try with "
    "~~In 0.19.5, they removed the deprecated `post_id`"
    
    > curl 'https://lemmy.ml/api/v3/comment/list?post_id=21766749' | jq '.comments.[] | .comment.content[:50]'
    "Yeah, you're right. I didn't read enough of the do"
    "Thank you for the tip ... but whatever I try with "
    "~~In 0.19.5, they removed the deprecated `post_id`"
    

    I think it would be better to ask the admin of the instance before creating the issue.