Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name FixTwitchChat
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description try to take over the world!
- // @author You
- // @grant none
- // ==/UserScript==
- function addGlobalStyle(css) {
- var head, style;
- head = document.getElementsByTagName('head')[0];
- if (!head) { return; }
- style = document.createElement('style');
- style.type = 'text/css';
- style.innerHTML = css;
- head.appendChild(style);
- }
- addGlobalStyle('div.twilight-root { background:#000 !important; }');
- addGlobalStyle( '.top-nav__menu { background:#333 !important;, background-color:#333 !important; }' );
- addGlobalStyle( '.top-nav__menu div { background:#333 !important;, background-color:#333 !important; }' );
- addGlobalStyle( '.theme--dark .top-nav__menu div a { background:#333 !important;, background-color:#333 !important; color:#fff !important; }' );
- addGlobalStyle( '.channel-header {background:#222 !important;}' );
- addGlobalStyle( '.channel-info-bar {background:#222 !important;}' );
- addGlobalStyle( 'a {color:#fff !important; }' );
- function killPinnedCheer() {
- setTimeout( killPinnedCheer, 5000 );
- var foo = document.getElementsByClassName ( 'pinned-cheer__headline' );
- for ( var i = 0; i < foo.length; i++ ) {
- foo[i].remove();
- }
- }
- setTimeout( killPinnedCheer, 2000 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement