this post was submitted on 27 Nov 2023
25 points (100.0% liked)

/kbin meta

110 readers
1 users here now

Magazine dedicated to discussions about the kbin itself. Provide feedback, ask questions, suggest improvements, and engage in conversations related to the platform organization, policies, features, and community dynamics. ---- * Roadmap 2023 * m/kbinDevlog * m/kbinDesign

founded 2 years ago
 

There's a chance that I have forgotten something or missed something.

But these are my finds, so far.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 22 points 1 year ago (1 children)

These points are not a priority, but relatively easy to achieve. They will gradually appear on the instance in between working on significant things. It's worth following https://kbin.social/m/kbinDevlog

[–] [email protected] 7 points 1 year ago (2 children)

I'm just wondering about 'spoiler alert' - what is it exactly? I haven't delved into Lemmy's code for a long time.

[–] [email protected] 8 points 1 year ago (1 children)

I would guess it's the capacity of masking text through markdown for spoiler purposes:
https://github.com/LemmyNet/lemmy/issues/104

[–] [email protected] 13 points 1 year ago (4 children)

masking text
Like this?

kbin does that just fine.

[–] [email protected] 8 points 1 year ago* (last edited 1 year ago) (1 children)

Oh my Deity how did you do that?!

I've been cursing enviously for days when I see a spoiler (system) I couldn't use myself!
I didn't get Lemmy's style to work.

[–] [email protected] 11 points 1 year ago (1 children)

hidden text title
hidden text

hidden text titlehidden text
[–] [email protected] 9 points 1 year ago* (last edited 1 year ago) (3 children)

test
Does this thing work?

sigh Finally.
Now I just need to find a convenient way to save this piece of code and copy-paste it whenever I need it 🤔

.


...except that when I wrote more text into this comment, the code broke 🤔

Upon further testing - if I edit a text, the spoiler stops working. When I update the page, the spoiler works again.

[–] [email protected] 5 points 1 year ago (1 children)

Indeed, I missed that case, thanks.

[–] [email protected] 3 points 1 year ago (1 children)

Ironically, that doesn't work for me at all. (I have seen other spoiler blocks recently though, so not sure why not.)

[–] [email protected] 3 points 1 year ago (1 children)

Is it browser-, operating system- or device-related?

I'm on Windows PC, Firefox, at https://kbin.social/

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago) (1 children)

I'm poking around at it now. I'm guessing it's probably something to do with JavaScript -- which I block by default via NoScript. (That's kind of odd though since I thought it was generating a /\ HTML block server side, but maybe it's doing it on the client and I just happened to have JS unblocked when I saw it before?)

Edit: It looks like it is coming from this webpack'd JS file currently which I think is built from this JS source file; there is a handleSpoilers function defined which manipulates details/summary elements. Oddly, there is also PHP code for manipulating details/summary like I thought.

@ernest can chime in on if that's a temporary thing or what, but yeah, it seems to not work for me because I block JavaScript.

[–] [email protected] 2 points 1 year ago

Hmm. Okay.

Yeah I'm no code savvy so let's hope they know more about it 😁

[–] [email protected] 3 points 1 year ago (1 children)

Yo, that is so good to know!
Wish there was a link to some quick stylesheet guide that kbin supports when you write a comment. Haven't seen this feature before.

[–] [email protected] 3 points 1 year ago

@[email protected] I think it's for the functionality used in this random comment I found.

https://lemmy.world/comment/4533835