Skip to content

Instantly share code, notes, and snippets.

@inilim
Created January 12, 2026 15:45
Show Gist options
  • Select an option

  • Save inilim/827de77ac59a9b77d2158da3f179668d to your computer and use it in GitHub Desktop.

Select an option

Save inilim/827de77ac59a9b77d2158da3f179668d to your computer and use it in GitHub Desktop.
Twitch — hide dark overlay
// ==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