Have a lot of custom/personal emojis and want to keep track of them? lemmy-emojis just got support for that! (It’s exactly as janky as the rest of the extension.) Btw, if you only want to use the extention to keep track of your own emojis and don’t want to have emojis from some lemmy instance, clearing the domain setting (and turning off “update automatically,” since it is unnecessary) will let you do that

Don’t know what lemmy-emojis is? It’s for you, the non-hexbear that want’s to use hexbear’s emojis. Or if you want to use dbzer0’s, or some third instance. It let’s you do that.


This user is suspected of being a cat. Please report any suspicious behavior.

  • Cool. Seems to work perfectly fine for me, so I can’t debug the problem you encountered. You can store stuff with https://violentmonkey.github.io/api/gm/#gm_setvalue

    // ==UserScript==
    // @name         Lemmoji
    // @namespace    http://something.here/
    // @version      2026-07-13
    // @description  add emojis to lemmy
    // @author       Trying2KnowMyself, theoretically with some code stolen from Edie except that I've only made it to a proof of concept phase so far and didn't actually steal code yet
    // @match        https://hexbear.net/*
    // @icon         https://hexbear.net/pictrs/image/79f0e1d8-b425-47fe-a1ac-9ee1ab6c246d.png
    // @grant        none
    // @run-at       document-start
    // ==/UserScript==
    
    (function() {
      'use strict';
      let emojis = [
        {
          shortcode: "catclops",
          image_url: "https://lemmy.ml/pictrs/image/fbab8b2d-2189-4311-b26f-61ae7cfa632c.png",
          alt_text: "catclops",
          keywords: [ "catclops" ]
        }
      ]
      // it might already be set
      let isoData = window.isoData;
      if (window.isoData) {
        console.log("isoData already defined, might not work?");
        augmentCustomEmojis(isoData);
      }
      Object.defineProperty(window, 'isoData', {
        get () {
            console.log("getting isoData");
            return isoData;
        },
        set(value) {
          console.log("setting isoData");
          augmentCustomEmojis(value);
        }
      });
      function augmentCustomEmojis(value) {
          console.log("augmenting isoData");
          //const biggestId = value.site_res.custom_emojis.reduce((acc, curr) => Math.max(acc, curr.custom_emoji.id), 0);
          for (let i in emojis) {
            let keywords = [];
            for (let keyword in emojis[i].keywords) {
              keywords.push({
                //"custom_emoji_id": biggestId + 1 + Number(i),
                "keyword": emojis[i].keywords[keyword]
              });
            }
            value.site_res.custom_emojis.push({
              "custom_emoji": {
                //"id": biggestId + 1 + Number(i),
                //"local_site_id": 1,
                "shortcode": emojis[i].shortcode,
                "image_url": emojis[i].image_url,
                "alt_text": emojis[i].alt_text,
                "category": "Custom",
                //"published": "2023-06-17T21:15:35.303290Z"
              },
              "keywords": keywords
            });
          }
          isoData = value
      }
    })();
    

    This user is suspected of being a cat. Please report any suspicious behavior.

    • Trying2KnowMyself [they/them, comrade/them]@hexbear.net
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      19 hours ago

      Nice! I didn’t even think to try skipping some of those fields. I’ll have to see if I can throw another tab on settings for emoji management next.

      E: throwing the tab there worked fine, but you can’t switch back to whichever tab you were on last. Maybe I should just throw a section under settings instead of trying to be fancy.