jkap

CEO of posting

butch jewish dyke
part of @staff, cohost user #1
married to @kadybat

This user can say it
osu stats


🐘 mastodon
xoxo.zone/@jkap
🖼️ icon credit
twitter.com/osmoru
🐦 twitter
not anymore lol

"hey jae how do you feel about people writing userscripts for cohost?" unbelievably based. i've got several installed. our users have good ideas pretty often and the beauty of userscripts is that they can do shit that we can't do (usually because of time constraints).

i want to do more to make writing certain types of userscripts easier (beyond "decent selectors", i know that's an issue, i haven't figured out a good way to attach selectors in a way that doesn't require manual work on our end) but, again, Time Constraints. maybe after the public API ships.


You must log in to comment.

in reply to @jkap's post:

"decent selectors", i know that's an issue, i haven't figured out a good way to attach selectors in a way that doesn't require manual work on our end

in general i think the web should have a better method for this. classes are, well, classes, and IDs have to be unique. i think something like a usage field similar to the class field or something like that would be nice, where you can target for example posts, all buttons or another specific ui element in a certain path (like for example the buttons near the post button on comments and posts to inject a 3rd-party emoji button). this is more of a The Web Fucking Sucks than cohost issue

completely agree. you sort of get there with aria-role but (a) i'm not sure if you can query on implicit/default roles (b) it's limited by being designed for screen readers, which have very different needs from userscript developers.

the version of this i was prototyping (which had A Lot of issues, especially whenever fragments were involved) involved slapping the react component display names on as a data attribute at build-time, which still isn't ideal because it's very susceptible to us refactoring anything, but that's the case now too so who knows

@easrng has done some neat userscript stuff (her lightbox userscript and her rewrite of my md+ userscript) that actually hook into React and makes new elements. It’s super cool! I think that this method is a really awesome way of doing it, and I’d love to see more development on the method!

Um! It would be really cool if you could expose some things on the window object (React, a way to replace/hook components, and a rerender function (to pick up on replaced components)) and also a custom cohostloaded event or something (rn waiting for all the scripts to load is pretty janky (tho it might be better now that you aren't using cloudflare))