// ==UserScript== // @name twitch embed login fix // @namespace zomo.dev // @match https://twitch.tv/embed/* // @version 1.0 // @description embedded twitch frames will automatically request cookie access from the browser. as long as you're logged in to twitch and cookies aren't fully blocked this will keep you logged into embedded frames // @runat document-start // @downloadURL https://git.zomo.dev/zomo/browser-scripts/raw/branch/main/dist/twitch-embed-login.user.js // @supportURL https://git.zomo.dev/zomo/browser-scripts/issues // @homepageURL https://git.zomo.dev/zomo/browser-scripts // ==/UserScript== ;(async () => { if (!(await document.hasStorageAccess())) { await document.requestStorageAccess() location.reload() } })()