Adrian Roselli on Nostr: I made a bookmarklet to restore the stop/pause controls to embedded `<video>`: The ...
Published at
2024-07-03 15:57:44Event JSON
{
"id": "2b91ecd631080af94612591fa5efc4e8db953abe0c07e774929002d95abf1612",
"pubkey": "7e72a9e116902990cb1f9173e4bd7d1b65a86e0420cd97e82f540d2829413609",
"created_at": 1720022264,
"kind": 1,
"tags": [
[
"t",
"a11y"
],
[
"t",
"accessibility"
],
[
"proxy",
"https://toot.cafe/users/aardrian/statuses/112723379107965953",
"activitypub"
]
],
"content": "I made a bookmarklet to restore the stop/pause controls to embedded `\u003cvideo\u003e`:\nhttps://adrianroselli.com/2015/01/css-bookmarklets-for-testing-and-fixing.html#VidControls\n\nThe function:\n\n```\nconst vid = document.querySelectorAll('video:not([controls])');\nvid.forEach(v =\u003e {\n\tv.setAttribute('controls','');\n})\n```\n\nAll it care about is adding the `controls` attribute to videos where it has been removed.\n\n#a11y #accessibility",
"sig": "2a6cc60718fda238e1cf586a14daaaa178797a01d7d2db95b4a38256db48ce28bf803f5de14890c92642bb4dbfd95a6560914ac6be1f84dec582504a9f034707"
}