@linuxenjoyer@blahaj.zone
@linuxenjoyer@blahaj.zone avatar

linuxenjoyer

@linuxenjoyer@blahaj.zone

iuhigytfdrdcfgvhijoikija mmhgh progamming,mj lienux,, computer

🏳️‍⚧️🏳️‍⚧️🏳️‍⚧️ she/her 🏳️‍⚧️🏳️‍⚧️🏳️‍⚧️

(pfp is Michiru from BNA)
(banner is duke java)
19

if you know me irl please don't let me know :)

This profile is from a federated server and may be incomplete. Browse more on the original instance.

m, to random
@m@seafoam.space avatar

it's crazy how chileans, brazilians and romanians have the common tradition of hyping for their country whenever it's mentioned anywhere

linuxenjoyer,
@linuxenjoyer@blahaj.zone avatar

@m CHILE !!!! MEJOR PAIS DE CHILE ‼️‼️‼️🇵🇷🇵🇷🇵🇷🇵🇷

linuxenjoyer, to random
@linuxenjoyer@blahaj.zone avatar

Presenting: Quick send, a Misskey (and forks) plugin! (Tested in Sharkey)

This plugin lets you quickly send notes to select users! ​:blobcat_spin:​

It works by adding users to a send list. Simply click the 3 dots on their profile (either on their profile page, or in the on hover preview), and at the very bottom you'll see an option to add them (or remove them).

Then, on any note, click on the 3 dots, and at the bottom you'll have a button for each user you've added. ​:neocat_bongo_down:​

There are also options for clearing the list, and in the plugin's settings you can tell it to ask for confirmation, or to show a success dialog box.

To install go to settings > plugins > install and paste the source code:

/// @0.18.0
// This is licensed under MIT
### {
    name: "Quick send"
    version: "1.0.1"
    author: "@linuxenjoyer@blahaj.zone"
    description: "Send a note to your besties quickly"
    permissions: [ "write:notes" ]
    config: {
     show_success: {
            type: "boolean"
            label: "Show success dialog"
            description: "Makes a dialog pop up saying that it was sent. I'm not exactly sure how to do error handling, this is more to make sure the plugin didn't randomly crash."
            default: false
        }

     ask_confirmation: {
            type: "boolean"
            label: "Ask for confirmation"
            description: "Asks you if your really want to send the post."
            default: false
        }
    }
}

@save(obj) {
    Mk:save("user_send_list", obj)
}


@load() {
    var ls = Mk:load("user_send_list")
    if (ls == null) {
        save({})
        ls = {}
    }

    ls
}

// Simple function to format a username
@formatUsername(user) {
    var username = `@{user.username}`

    if (user.host != null) {
        username = `{username}@{user.host}`
    }

    username
}

@sendNote(note, userId) {
    // This is based on blahaj.zone's api-doc (sharkey)
    let res = Mk:api("notes/create" {
        visibility: "specified"
        renoteId: note.id
        visibleUserIds: [ userId ]
    })

    // TODO: Figure out error handling
    true
}

@getAction(username, userId) {
    @(note) {
        var should_send = !Plugin:config.ask_confirmation
        if (!should_send) {
            should_send = Mk:confirm(`Send post to {user}?` "" "question")
        }

        if (should_send) {
            let ok = sendNote(note, userId)

            // This is a little ugly but idrk how to tidy it up
            if (ok) {
                if (Plugin:config.show_success) {
                    Mk:dialog(`Sent note to {username}`, "", "success")
                }
            } else {
                Mk:dialog(`There was an error sending the note to {username}`, "", "error")
            }
        }
    }
}

// Underscores bc it's in global scope
let __ls = load()
each (let usr, Obj:keys(__ls)) {
    Plugin:register_note_action(`Send to {usr}`, getAction(usr, __ls[usr]))
}

Plugin:register_user_action("Add user to send list", @(user) {
    let username = formatUsername(user)

    let ls = load()

    if (ls[username] != null) {
        Mk:dialog(`{username} is already on the send list`, "", "error")
    } else {
        ls[username] = user.id
        save(ls)
        Mk:dialog(`Added {username} to the send list!`, "You might have to refresh to see the changes", "success")
    }
})

Plugin:register_user_action("Remove user from send list" @(user) {
    let username = formatUsername(user)

    let ls = load()
    if (ls[username] == null) {
        Mk:dialog(`{username} is not on the send list`, "", "error")
    } else {
        ls[username] = null
        save(ls)
        Mk:dialog(`Removed {username} from the send list!`, "You might have to refresh to see the changes", "success")
    }
})

Plugin:register_note_action("Clear user send list" @(note){
    if (Mk:confirm("Are you sure you want to clear the list?", "There's no way to undo this", "warning")) {
        save({})
        Mk:dialog("List cleared", "You might have to refresh to see the changes", "success")
    }
})

Plugin:register_user_action("Clear user send list" @(user){
    if (Mk:confirm("Are you sure you want to clear the list?", "There's no way to undo this", "warning")) {
        save({})
        Mk:dialog("List cleared", "You might have to refresh to see the changes", "success")
    }
})

It'll ask for permissions to create notes (it needs this to be able to send stuff) ​:blobcat_code:​

If you found it useful or have feature ideas/patches let me know ​:neocat_melt_reach:​

astrid, to random
@astrid@fedi.astrid.tech avatar

"trans girls are so lucky because they get to have estrogen and look cute. man, I sure wish I was trans, so I can get hrt too. but I shouldn't be wishing I was a minority, because that wouldn't be very respectful of their struggles and shit"

linuxenjoyer,
@linuxenjoyer@blahaj.zone avatar

@astrid i said this almost WORD for WORD ​:blobcat_erm:​

linuxenjoyer, to random
@linuxenjoyer@blahaj.zone avatar

heh yeah hey did you know i use arch by the way yeah i-- no wait stop walking away HEY PLEASE COME BACK NO

linuxenjoyer, to random
@linuxenjoyer@blahaj.zone avatar

I'm a hunter-gatherer, I look for cool links online and send them to various group chats

linuxenjoyer, to random
@linuxenjoyer@blahaj.zone avatar

It's almost 7am.... worth it...... ​:blobcat_meltthumbsuptears:​

Sharkey, to random

Congrats on the Successful migration of over 1000 users Blahaj.zone
(@supakaity , @ada )

​:shonks:​

linuxenjoyer,
@linuxenjoyer@blahaj.zone avatar

@Sharkey omg it's sharkey herself hii

linuxenjoyer, to random
@linuxenjoyer@blahaj.zone avatar

I love sites that let you set custom css. I had to change the font to Open Sans because my brain disagreed with the default one ​:blobcat_erm:​

linuxenjoyer,
@linuxenjoyer@blahaj.zone avatar

interesting that when you include mfm it tells you it might annoy others lol

linuxenjoyer, to random
@linuxenjoyer@blahaj.zone avatar

I think the sharkey cookie clicker should create a new browser cookie every time you click it

linuxenjoyer, to random
@linuxenjoyer@blahaj.zone avatar

oh hi sharkey

linuxenjoyer,
@linuxenjoyer@blahaj.zone avatar

hehe the achievements are cute, also the permanent notification on follow requests is gone :D

linuxenjoyer, to random
@linuxenjoyer@blahaj.zone avatar
i_lost_my_bagel, to random
@i_lost_my_bagel@mastodon.lilysthings.org avatar

new website design for if you go to my website on chromium with web integrity checks enabled

linuxenjoyer,
@linuxenjoyer@blahaj.zone avatar

@i_lost_my_bagel i went on your site and i cant agree enough with you on the trackpad thing. down is down !!!! ​:blobcat_nodfast:​

pierogiburo, to random

kinda sucks that you have to have a body :blobcatdead:

linuxenjoyer,
@linuxenjoyer@blahaj.zone avatar

@pierogiburo (not sure about the cw, i'd look up the lyrics)
https://youtu.be/1601-CSKyL4

linuxenjoyer, to random
@linuxenjoyer@blahaj.zone avatar

Goood video, I enjoy the vibes
https://youtu.be/S0pXQVMC770

linuxenjoyer, to random
@linuxenjoyer@blahaj.zone avatar

I'm on a bus and the speaker above keeps making random whirring and hissing noises.. What is it trying to say

linuxenjoyer, to random
@linuxenjoyer@blahaj.zone avatar

they should make things before 10am illegal

linuxenjoyer, to random
@linuxenjoyer@blahaj.zone avatar

Looking forward to this trimester, met a bunch of people on the discord and now we'll be on the same course ​:blobcat_bop:​

linuxenjoyer, to random
@linuxenjoyer@blahaj.zone avatar

my algorithms run in O(h no) time

linuxenjoyer, to random
@linuxenjoyer@blahaj.zone avatar

(Never used twitter) To me the quote feature is really fun. Like look, I found this cool post and put it in a jar!

linuxenjoyer, to random
@linuxenjoyer@blahaj.zone avatar
linuxenjoyer, to random
@linuxenjoyer@blahaj.zone avatar

I just found out about this cool rust library (crate?) called nom that lets you create parsers. It looks really nice,, and it makes me wish I had something to parse ​:dr_ralseidead:​

(saw it on this video)

linuxenjoyer, to random
@linuxenjoyer@blahaj.zone avatar

I'm running an update after 3 months on an arch laptop and uh,,, let's hope it holds together.
1084 packages. ​:blobcat_code:​

linuxenjoyer, to random
@linuxenjoyer@blahaj.zone avatar

learning rust so that girls like my vibe

  • All
  • Subscribed
  • Moderated
  • Favorites
  • anitta
  • thenastyranch
  • magazineikmin
  • tacticalgear
  • InstantRegret
  • ngwrru68w68
  • Durango
  • Youngstown
  • slotface
  • mdbf
  • rosin
  • PowerRangers
  • kavyap
  • DreamBathrooms
  • normalnudes
  • vwfavf
  • hgfsjryuu7
  • cisconetworking
  • osvaldo12
  • everett
  • ethstaker
  • GTA5RPClips
  • khanakhh
  • tester
  • modclub
  • cubers
  • Leos
  • provamag3
  • All magazines