Last active
January 1, 2023 14:13
-
-
Save dani12817/da23f381d69a55be7f3c9892369d5d0e to your computer and use it in GitHub Desktop.
Remove Twitch Recommended
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 Remove Twitch Front Page Recommended | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Quita las secciones de Recomendades de la página principal | |
// @author dani12817 | |
// @match https://www.twitch.tv/ | |
// @icon https://static.twitchcdn.net/assets/favicon-32-e29e246c157142c94346.png | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
console.log("Front Page Recommended"); | |
var frontInterval = setInterval(function () { | |
var frontCarousel = document.getElementsByClassName("front-page-carousel"); | |
if (frontCarousel.length) { | |
clearInterval(frontInterval); | |
frontCarousel[0].remove(); | |
} | |
}, 1000); | |
var recoInterval = setInterval(function () { | |
var recoSection = document.getElementsByClassName("find-me"); | |
if (recoSection.length) { | |
clearInterval(recoInterval); | |
recoSection[0].remove(); | |
} | |
}, 1000); | |
})(); |
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 Remove Twitch Sidebar Recommended | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Quita la sección de Recomendados de la barra lateral | |
// @author dani12817 | |
// @match https://www.twitch.tv/* | |
// @icon https://static.twitchcdn.net/assets/favicon-32-e29e246c157142c94346.png | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
console.log("Sidebar Recommended"); | |
var sideInterval = setInterval(function () { | |
var sideSections = document.getElementsByClassName("side-nav-section"); | |
if (sideSections.length) { | |
clearInterval(sideInterval); | |
sideSections[1].remove(); | |
} | |
}, 1000); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment