Illuminati Information Systems is a user on cronk.stenoweb.net. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.
Illuminati Information Systems @calvin

Working on an "expand all content warnings" bookmarklet for public timelines. It's a bit annoying having to expand all the damn CWs in a long CW'd thread.

Caveats: media not supported just yet. It will expand only collapsed toots though.

Array.from(document.getElementsByClassName("status__content__spoiler-link")).forEach(function(x) { if (x.parentNode.style["margin-bottom"] == "0px") { x.click() } })

· Web · 0 · 0

Revised for media:

Array.from(document.getElementsByClassName("status__content__spoiler-link")).forEach(function(x) { if (x.parentNode.style["margin-bottom"] == "0px") { x.click() } }); Array.from(document.getElementsByClassName("media-spoiler")).forEach(x => x.click());

Content Warning expanding bookmarklet (how meta!) Show more

@calvin Would be a nice option to be able to expand all CW on a thread.

@jcdietrich look down the thread, I extended the bookmarklet. i'll try to test with the mastodon private web ui later.