Skip to content

Instantly share code, notes, and snippets.

@lylejantzi3rd
lylejantzi3rd / gist:7a13b2526a4d99c44ab80105d1be4dcc
Last active February 12, 2025 14:37
Show video controls for Instagram videos
function mutateInstagramVideo(node) {
node.querySelectorAll('video').forEach(video => {
video.setAttribute('controls', '')
video.nextElementSibling.remove()
})
}
mutateInstagramVideo(document)
var observer = new MutationObserver(function(mutations) {