ShadeRoot CardCast

Eye-friendly magic in your browser for CardcastGame.

  1. //
  2. // Written by Glenn Wiking
  3. // Script Version: 1.0.0a
  4. // Date of issue: 15/05/16
  5. // Date of resolution: 15/05/16
  6. //
  7. // ==UserScript==
  8. // @name ShadeRoot CardCast
  9. // @namespace SRCC
  10. // @description Eye-friendly magic in your browser for CardcastGame.
  11. // @include *.cardcastgame.*
  12. // @version 1
  13. // @grant none
  14. // @icon http://i.imgur.com/5sizTYn.png
  15. // ==/UserScript==
  16.  
  17. function ShadeRootCC(css) {
  18. var head, style;
  19. head = document.getElementsByTagName('head')[0];
  20. if (!head) { return; }
  21. style = document.createElement('style');
  22. style.type = 'text/css';
  23. style.innerHTML = css;
  24. head.appendChild(style);
  25. }
  26.  
  27. ShadeRootCC (
  28. 'body {background: #000 !important; color: #565252;}'
  29. +
  30. '.nav-tabs {border-bottom: 1px solid #3F3B3B !important; padding-top: 4em !important;}'
  31. +
  32. '.nav-tabs > li > a {color: #7E7979;}'
  33. +
  34. '.form-control {background-color: #353232 !important; border: 1px solid #4B3F3F !important;}'
  35. +
  36. '.input-highlight.has-success input {background: #353F35 !important; color: #ABB6A7 !important;}'
  37. +
  38. '.input-highlight.has-error input {background: #443939 !important; color: #B6A8A7 !important;}'
  39. +
  40. '.table > tbody > tr > td {border-top: 1px solid #382B2B !important;}'
  41. +
  42. '.btn-default {color: #A49D9D !important; background-color: #231A1A !important; border-color: #4A3131 !important;}'
  43. +
  44. '.action-icon-lightest, .lightest {color: #873737 !important;}'
  45. );