shazbot

joined 2 years ago
[–] shazbot@kbin.social 1 points 2 years ago

See my script above, I have updated it to handle both cases (index thumbs and inline)

[–] shazbot@kbin.social 4 points 2 years ago

Alright, I've updated it to 0.0.5 and now it handles both inline and fixed-size index thumbnails. The thumbnails on the index get cropped to fit the hard dimensions of the squares and maintain the correct aspect ratio. In the case of inline images, they just get scaled to 50% of the original size with no constraint on the height.

[–] shazbot@kbin.social 3 points 2 years ago

Alright, those index thumbnails are confined to a 220x145 square, so we can handle those separately by using the cover method of the object-fit property to scale them. Give me a minute to update it...

[–] shazbot@kbin.social 5 points 2 years ago* (last edited 2 years ago)

I was kind of leery of making this global because I didn't want it to affect thumbnails on the thread index, since they must be confined to a finite area, whereas in a thread they can flex downward. (The fetched image can be an arbitary size.) But it looks like they don't use the same selector, so should be safe.

Edit: I've updated it to support thread index, inline images, and profile pages and the differing aspect ratios

[–] shazbot@kbin.social 1 points 2 years ago (1 children)

Your link is pointing to a playstation 2 youtube video

[–] shazbot@kbin.social 1 points 2 years ago

Affects inline images in posts, not thumbnails in the thread index

[–] shazbot@kbin.social 1 points 2 years ago

I've updated the help file with screenshots and a more step-by-step walkthrough of how to install, hope this helps.

[–] shazbot@kbin.social 1 points 2 years ago (2 children)

Feels like we are due for making a megamod combining these fixes

[–] shazbot@kbin.social 3 points 2 years ago (2 children)

Sorry if that was unclear. If you look at the dependencies at the top of the instructions, you need the Stylus extension. I believe it's only available in Firefox and Chrome. Once you have the extension installed, navigating to scripts like that one will bring up an install menu that lets you load the script and choose the parameters you want. It looks like this

I'll update the README tomorrow to make this clearer.

[–] shazbot@kbin.social 20 points 2 years ago (2 children)

I've taken a stab at a client-side theme here that should be easy for people with zero technical literacy to install. The main goal was to parameterize the options and create a more forumlike layout. This is merely a stopgap measure, but has greatly improved the readability for me.

view more: ‹ prev next ›