Advertisement
MrCab

go away pinned cheer dot js

Nov 10th, 2017
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         FixTwitchChat
  3. // @namespace    http://tampermonkey.net/
  4. // @version      0.1
  5. // @description  try to take over the world!
  6. // @author       You
  7. // @grant        none
  8. // ==/UserScript==
  9.  
  10. function addGlobalStyle(css) {
  11.     var head, style;
  12.     head = document.getElementsByTagName('head')[0];
  13.     if (!head) { return; }
  14.     style = document.createElement('style');
  15.     style.type = 'text/css';
  16.     style.innerHTML = css;
  17.     head.appendChild(style);
  18. }
  19.  
  20. addGlobalStyle('div.twilight-root { background:#000 !important; }');
  21.  
  22. addGlobalStyle( '.top-nav__menu { background:#333 !important;, background-color:#333 !important; }' );
  23. addGlobalStyle( '.top-nav__menu div { background:#333 !important;, background-color:#333 !important; }' );
  24. addGlobalStyle( '.theme--dark .top-nav__menu div a { background:#333 !important;, background-color:#333 !important; color:#fff !important; }' );
  25.  
  26. addGlobalStyle( '.channel-header {background:#222 !important;}' );
  27. addGlobalStyle( '.channel-info-bar {background:#222 !important;}' );
  28.  
  29. addGlobalStyle( 'a {color:#fff !important; }' );
  30.  
  31. function killPinnedCheer() {
  32.     setTimeout( killPinnedCheer, 5000 );
  33.     var foo = document.getElementsByClassName ( 'pinned-cheer__headline' );
  34.     for ( var i = 0; i < foo.length; i++ ) {
  35.         foo[i].remove();
  36.     }
  37. }
  38. setTimeout( killPinnedCheer, 2000 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement