Created
January 12, 2026 15:45
-
-
Save inilim/827de77ac59a9b77d2158da3f179668d to your computer and use it in GitHub Desktop.
Twitch — hide dark overlay
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Twitch — hide dark overlay | |
| // @namespace http://tampermonkey.net/ | |
| // @version 1.0 | |
| // @description скрывает оверлей блокировщик | |
| // @author You | |
| // @match https://www.twitch.tv/* | |
| // @grant none | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| const CHECK_INTERVAL_MS = 2000; | |
| setInterval(function(){ | |
| // Layout-sc-1xcs6mc-0 bmlSdB player-overlay-background player-overlay-background--darkness-3 | |
| const overlay = document.querySelector('div.player-overlay-background--darkness-3:not([data-checked-overlay])'); | |
| if(overlay){ | |
| // overlay.remove(); | |
| // overlay.style.display = 'none'; | |
| overlay.style.setProperty('display', 'none', 'important'); | |
| overlay.dataset.checkedOverlay = 'true'; | |
| console.log('[Hide overlay]', overlay.outerHTML); | |
| } | |
| }, CHECK_INTERVAL_MS); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment