ShadeRoot Amazon

Eye-friendly magic in your browser for Amazon

当前为 2016-05-14 提交的版本,查看 最新版本

  1. //
  2. // Written by Glenn Wiking
  3. // Script Version: 1.0.0a
  4. // Date of issue: 18/02/16
  5. // Date of resolution: 24/02/16
  6. //
  7. // ==UserScript==
  8. // @name ShadeRoot Amazon
  9. // @namespace SRAZ
  10. // @description Eye-friendly magic in your browser for Amazon
  11. // @include *.amazon.*
  12.  
  13. // @version 1.0.0a
  14. // @icon XX
  15. // ==/UserScript==
  16.  
  17. function ShadeRootAZ(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. ShadeRootAZ (
  28. 'html, #navbar.nav-bluebeacon #nav-belt, #nav-main {background-color: #18212d !important;}'
  29. +
  30. 'body {color: #F8DDC3 !important;}'
  31. +
  32. 'hr {border-top: 1px solid #8c482d !important;}'
  33. +
  34. '.nav-search-field {background: #38342e !important;}'
  35. +
  36. '.nav-input, .a-color-base {color: #F3EAD8 !important;}'
  37. +
  38. '.nav-search-scope {background-color: #231b15 !important; border-color: #4d3b18 !important;}'
  39. +
  40. '#gw-content-grid {background: #2C241D !important;}'
  41. +
  42. '.gw-flex-col .desktop-unrec-col, .a-box {background: #3E2D23 !important;}'
  43. +
  44. 'a, a:active, a:link, a:visited, .navFooterColHead {color: #dd832c !important;}'
  45. +
  46. 'a:hover {color: #da4500 !important;}'
  47. +
  48. '#a-page {background: rgb(12, 17, 24) !important;}'
  49. +
  50. '.navFooterBackToTop span {color: #F0CFBD !important; background: #3C2C22 !important;}'
  51. +
  52. '.a-button-text {color: #5f3f20 !important;}'
  53. +
  54. '.a-color-secondary {color: #DEA145 !important;}'
  55. +
  56. '.a-link-normal, .nav_a {color: #ef530a !important;}'
  57. +
  58. '.a-color-price {color: #EAB38F !important;}'
  59. +
  60. '.a-icon-logo, .a-logo {background-color: #6B5346 !important; border-radius: 4px !important;}'
  61. +
  62. '.a-box {border: 1px #863f12 solid !important;}'
  63. +
  64. '.a-input-text, input[type="number"], input[type="tel"], input[type="password"], input[type="search"], input[type="text"] {background-color: #2c251f !important;}'
  65. +
  66. '.a-input-text, input[type="number"], input[type="tel"], input[type="password"], input[type="search"], input[type="text"], select.a-select-multiple, textarea {border: 1px solid #8d4d16 !important; border-top-color: #B3621E !important; box-shadow: 0 1px 0 rgba(126, 51, 22, 0.5),0 1px 0 rgba(0,0,0,.07) inset !important;}'
  67. +
  68. '.a-box .a-divider.a-divider-break h5, .a-color-base-background .a-divider.a-divider-break h5, .a-divider.a-divider-break h5 {background-color: #3e2d23 !important;}'
  69. +
  70. '.a-box .a-divider.a-divider-break::after, .a-color-base-background .a-divider.a-divider-break::after, .a-divider.a-divider-break::after {border-top: 1px solid #ab6623 !important;}'
  71. +
  72. '.a-box .a-divider.a-divider-break h5, .a-color-base-background .a-divider.a-divider-break h5, .a-divider.a-divider-break h5 {color: #F0D4BD !important;}'
  73. +
  74. '.a-button {background: #9e4820 !important; border-color: #d47518 #d77b14 #d77b14 !important;}'
  75. +
  76. '.a-button .a-button-inner {background: linear-gradient(to bottom,#e98727,#bf5c14) !important;}'
  77. +
  78. '.a-button .a-button-inner:hover {background: linear-gradient(to bottom,#f6c35b,#ef741b) !important;}'
  79. +
  80. '.a-button .a-button-text {color: #392F27 !important;}'
  81. );