Created
January 7, 2023 01:31
-
-
Save olegsvs/961d1c6c9ba15816e7e137cc4014e227 to your computer and use it in GitHub Desktop.
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 Twitch team extender | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Расширяет область плеера на странице hpgfam | |
// @author frymustdie | |
// @match https://www.twitch.tv/team/hpgfam | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=twitch.tv | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
window.addEventListener("load", function() { | |
setTimeout(function() { | |
const container = document.getElementsByClassName('jUIRxd')[0] | |
container.setAttribute('style', 'padding:' + '0' + '!important'); | |
const innerContainer = document.getElementsByClassName('teams-page-body__inner-container')[0] | |
innerContainer.style.width = "88%" | |
innerContainer.style.margin = "0" | |
const logo = container.getElementsByClassName('teams-page-body__logo')[0] | |
logo.style.display = "none" | |
const header = container.getElementsByClassName('hYkDnG')[0] | |
header.setAttribute('style', 'display:' + 'none' + '!important'); | |
const team = container.getElementsByClassName('member-list__scrollable-container')[0] | |
team.style.height = "100%" | |
const banner = container.getElementsByClassName('teams-page-body__banner')[0] | |
banner.style.display = "none" | |
const lColumn = container.getElementsByClassName('teams-page-body__column--left')[0] | |
lColumn.style.width = "15%" | |
const rColumn = container.getElementsByClassName('teams-page-body__column--right')[0] | |
rColumn.style.width = "100%" | |
}, 2000); | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment