ShadeRoot Bol.com

Eye-friendly magic in your browser for bol.com

当前为 2016-03-09 提交的版本,查看 最新版本

  1. //
  2. // Written by Glenn Wiking
  3. // Script Version: 1.0.0a
  4. // Date of issue: 24/02/16
  5. // Date of resolution: 25/02/16
  6. //
  7. // ==UserScript==
  8. // @name ShadeRoot Bol.com
  9. // @namespace SRBC
  10. // @description Eye-friendly magic in your browser for bol.com
  11. // @include *bol.com/*
  12. // @version 1.0.0a
  13. // @icon XX
  14.  
  15. // ==/UserScript==
  16.  
  17. function ShadeRootBC(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. ShadeRootBC (
  28. 'html, body {background: #1D1919 !important;}'
  29. +
  30. '.constrain--light, .header-section--search {background-color: #0e1114 !important;}'
  31. +
  32. '.cookie-bar {border-bottom: 1px solid #0e1929 !important; background-color: #11222d !important; color: #bcd0d7 !important;}'
  33. +
  34. '.no-js .main-nav__item:active > .main-nav__link, .no-js .main-nav__item:hover > .main-nav__link {border-color: #0f242f !important;}'
  35. +
  36. 'p {color: #bcd0d7 !important;}'
  37. +
  38. '.header-fixed .main-nav__link {border-color: #102539 !important;}'
  39. +
  40. '.header-fixed .main-nav__item--special .main-nav__link {background: #1E2B42;}'
  41. +
  42. '.header-fixed .main-nav__item {border-color: #0f2130 !important; background-color: #0f1520 !important;}'
  43. +
  44. '.main-nav__link, .main-nav__link span {color: #B7CFE7 !important;}'
  45. +
  46. '.header-fixed .main-nav {border-bottom: 1px solid #1f2f44 !important;}'
  47. +
  48. '.main-logo__svg {background-color: #3366CA !important; border-radius: 5px !important; padding: 2px !important;}'
  49. +
  50. '.marketing-banner {border-bottom: 1px solid #172839 !important;}'
  51. +
  52. '.header-fixed .large--is-visible {color: #36C !important; background: #000 !important;}'
  53. +
  54. '.header-fixed .is-locked .category-nav-btn, .header-fixed .is-open .category-nav-btn {color: #31312f !important; border-color: #0d151e !important; background: #193554 !important;}'
  55. +
  56. '#top_bar .top-bar__bdr {border-bottom: 1px solid #17283c !important;}'
  57. +
  58. '.search-input, .search-select {border-color: #243744 !important;}'
  59. +
  60. '.search_suggestions_completer {border: 1px solid #17232f !important; background: #142d47 !important;}'
  61. +
  62. '.search-input, .search-select {border-color: #243744 !important; background: #11222D !important;}'
  63. +
  64. '.search-select {background-color: #0f1520 !important; color: #3366CA !important;}'
  65. +
  66. 'select {color: #B7CFE7 !important;}'
  67. +
  68. '.search-btn {border: 1px solid #112439 !important;}'
  69. +
  70. '#top_bar ul li a {color: #9bb2e1 !important;}'
  71. +
  72. '#top_bar ul li a:hover {color: #3366ca !important;}'
  73. +
  74. '.basket__btn-bg {border: 2px solid #0f53b9 !important; background: #3366ca !important;}'
  75. );