Skip to content

Instantly share code, notes, and snippets.

@Nonymus
Last active June 13, 2024 20:40
Show Gist options
  • Save Nonymus/a44531f062e82f3062ffab6a06d80a56 to your computer and use it in GitHub Desktop.
Save Nonymus/a44531f062e82f3062ffab6a06d80a56 to your computer and use it in GitHub Desktop.
Remove chat banner on embedded chat.
// ==UserScript==
// @name Remove Twitch Popout Banner Sonntagsstreamer
// @namespace http://tampermonkey.net/
// @version 0.3
// @description try to take over the world!
// @author Ragufti
// @match https://www.twitch.tv/embed/*/chat?darkpopout&parent=www.sonntagsstreamer.de
// @icon https://www.google.com/s2/favicons?sz=64&domain=sonntagsstreamer.de
// @source https://gist.github.com/Nonymus/a44531f062e82f3062ffab6a06d80a56
// @grant none
// ==/UserScript==
(function() {
'use strict';
setInterval(() => {
const hasBanner = document.querySelector('.channel-leaderboard-header-rotating__users');
if (hasBanner) {
const chatroom = document.querySelector('.chat-room__content > div:nth-child(1)');
if (chatroom) {
chatroom.remove();
console.log('Removed banner');
}
}
}, 500);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment