Reasonable Instagram video player

Enable video player controls and set default volume to 40%.

// ==UserScript==
// @name         Reasonable Instagram video player
// @namespace    uls
// @version      0.3
// @description  Enable video player controls and set default volume to 40%.
// @author       uls
// @include      *instagram.com*
// @grant        none
// ==/UserScript==

(function () {
    'use strict';

    function videoFixer() {
        var player = document.querySelector('video:not([fixed])')
        if(!player)
            return
        console.log('updating player')
        player.style.zIndex = 99999
        player.setAttribute('controls', 1)
        player.setAttribute('autoplay', 1)
        player.muted = false
        player.volume = 0.4
        player.setAttribute('fixed', 1)
    }

    setInterval(videoFixer, 1000)
})();