lp0101 / Always Focused Twitch

// ==UserScript==
// @name          Always Focused Twitch
// @namespace     lp0101.io
// @description   Twtich.tv will automatically lower the quality if the tab it's in becomes hidden, which sucks if watching in Picture in Picture. This will trick the tab into thinking it's always in focus
// @match         https://*.twitch.tv/*
// @version       1.0.0
// @license       MIT
// ==/UserScript==

Object.defineProperty(document, "hidden", {
  value: false
});