inbtwn

here comes the no notes ghost 👻

  • he/they

hi there. i'm inbtwn. nice to meet ya!

i sometimes post about Things, mostly niche internet things like youtube videos, webcomics, etc. but i also reblog (rebug) a LOT of cool things so uhhh be warned



purrl
@purrl

if you see this and think "wait, why doesn't cohost have a popover card that lets me quickly see a user's info and follow them?" then please share this post and go like my feature request over on the assc forum

EDIT: for a userscript that does this that you can use until it's implemented for real, see @Osmose's reply to this post. it's so nice when a community comes together


lexi
@lexi

i really don't have the time for it rn but if someone wants to hack a userscript together:

  • look for all links pointing to ^\/[^\/]$
  • look if a link is being hovered
  • make an iframe to the profile
  • check inside the iframe how tall the iframe should be, roughly like this:

  • make a little bit of CSS

  • maybe change HTML of iframe a bit to make it more responsive

but yeah if you want to implement it: i have a bunch of exams and not a lot of time so feel free to do so. also if you need help just comment here lol



You must log in to comment.

in reply to @purrl's post:

personally I like to scroll through the page's recent posts anyway bc like, cohost is all chronological, and if 90% of their posts are about stuff I don't care about I'm not going to follow, even if I like that one thing 😅

i think it's still handy for quickly seeing the user's tagline, pronouns, etc, even if you don't plan to follow using it. it gives a quick sense of who a person is, beyond whatever the post they just posted says

in reply to @lexi's post:

i think if you do it like this and don't somehow remove the full-length bio and only keep the display name/handle/tagline/pronouns/website then some people's will just. scroll off the screen lol

but i don't know enough about iframes to know how you'd do it

i'm glad it's trivial! the only time that i've at all come close to making userscripts is when i hucked frankerfacez inside a safari extension wrapper a few years ago back when safari was making it so every extension had to be an app and every extension was dropping safari support lol.

eventually i would like to delve into trying to make tiny userscripts but today is not that day (brain mush). i was trying advent of code the other day and the 'easy' ones were taking me like an hour each so i think i have to get back in the swing of figuring out how to think about coding

tl;dr CSS changes the appearance of a website, a userscript is a small CSS snippet provided by users, and you can install it with an extension like Stylus

in reply to @Osmose's post:

Aha, we could just not shift it over to the left, only reason I did so was because I thought I was gonna add the arrow in.

There's still the risk that a username will be too far to the right and have the same issue but I think that'll happen less often + I really don't want to do edge detection because it was a PITA last time I did it for work lol

I can update the gist, I have no idea how userscripts get updates.

EDIT: Updated the gist.

i think people have to manually update them unless they have an extension that handles that for them. i think you can point at a source file that'll always have the latest version in the metadata or something? right now i'm using arc which kind of has userscripts built in but not in an 'updatable' way, i don't think

also i think if you can display:none the full long bio, it would help because it looks like things end up overflowing past the end of the box

a picture showing how the long bio prevents the follow button from displaying

edit: for some people the entire bio displays, and i can see the follow button at the end. but my entire bio does not display, which is weird

Probably has to do with how it's finding the bottom of your profile, which is by looking for either:

  • the follow button
  • the login button (when you are logged out)
  • the edit profile button (when you are logged in and looking at your own profile)

I used the button text and XPath to find them instead of CSS because the classes are all generic enough that I'd be afraid of them changing and breaking this versus the text in the button. If it's failing to find the button there should be a warning in the JS console for the page that says it couldn't find the follow button. I guess I'm missing some edge case for looking at your own profile?