reth

the display name is my initials

experimenting and all that.
chief executive dysfunction officer. few of my posts are high-effort, but at least they're funny.
current avatar is an old art by fireflufferz because i'm bored with having michiru pfps.
.-.-.-.-.-.

lastfm listening



blep
@blep
This page's posts are visible only to users who are logged in.

reth
@reth

as much as i hate javascript, i somehow got it to work. it probably looks like shit for somebody who knows js well, but it is what it is.

it works by rendering a 250x120 canvas with the fonts Chalkboard and Skia, which are indeed found on macOS by default, on the left canvas. then on the right canvas it renders the pre-rendered version, boils down both of them into a dataURL and compares.

the problem is timing - because for some reason javascript is a very reasonable programming language that decides to run itself before the content itself loads, which requires me to add, very unfortunately, a 200ms sleep function. but it works! pic1 is macOS, pic2 is windows 10.

UPDATE i really fucking hate codeberg so much. and i hate ssl. i've literally had to import that repository to github. at least they have normal page hosting, ffs. anyway: https://voidlynx.github.io/macos check it out. might not work the first time, reload in that case. probably 200ms is not enough for github to retrieve that the first time.

UPDATE2 AAAAAAAAAAAAAAA


You must log in to comment.

in reply to @blep's post:

knowing how "fun" browsers can be while developing webbed sites, I feel like safari only css might be another good way to do this?
https://browserstrangeness.bitbucket.io/css_hacks.html#safari
its not all too much info about what these do or how youd be able to use these but i feel like if you can use these to do something like html{display: none;} youd be a good ways there already
the one other issue is that this is really easily overwritable so youd have to combine this with some other safari specific quirk, but it should be decently bullet proof after that