CEO of Contoso 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.

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() } })

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

CEO of Contoso @calvin

Content Warning expanding bookmarklet (how meta!) Show more

· Web · 0 · 0