Last active
March 10, 2022 11:39
-
-
Save sixem/9f2ce7760ff49a2a3b1f8c786954ded7 to your computer and use it in GitHub Desktop.
Remove recommended channels from Twitch sidebar (Userscript)
This file contains 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 Removes Recommended Channels | |
// @namespace Violentmonkey Scripts | |
// @match https://www.twitch.tv/* | |
// @grant none | |
// @version 1.0 | |
// @author - | |
// @description 26/6/2021, 1:22:39 AM | |
// ==/UserScript== | |
const inject = (rules) => | |
{ | |
let element = document.createElement('style'); | |
element.innerHTML = rules; | |
element.setAttribute('id', 'injected-hide-recommended'); | |
return document.head.append(element); | |
}; | |
window.addEventListener('load', () => | |
{ | |
inject('div.side-bar-contents > div > div > div:not([aria-label^="Followed "]){display:none!important;}'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment