ShadeRoot Pastebin

Eye-friendly magic in your browser for Pastebin

  1. //
  2. // Written by Glenn Wiking
  3. // Script Version: 1.0.2a
  4. // Date of issue: 08/29/17
  5. // Date of resolution: 08/29/17
  6. //
  7. // ==UserScript==
  8. // @name ShadeRoot Pastebin
  9. // @namespace SRPB
  10. // @description Eye-friendly magic in your browser for Pastebin
  11. // @version 0.0.1a
  12. // @icon https://i.imgur.com/yh3Gany.png
  13. // -- https://i.imgur.com/f6FIniz.png
  14.  
  15. // @include http://*pastebin.*
  16. // @include https://*pastebin.*
  17.  
  18. // ==/UserScript==
  19.  
  20. function ShadeRootPB(css) {
  21. var head, style;
  22. head = document.getElementsByTagName('head')[0];
  23. if (!head) { return; }
  24. style = document.createElement('style');
  25. style.type = 'text/css';
  26. style.innerHTML = css;
  27. head.appendChild(style);
  28. }
  29.  
  30. ShadeRootPB(
  31. // CONTENT COLOR 2
  32. 'body, #content_frame, #monster_frame {background-color: #081015;}'
  33. +
  34. // CONTENT COLOR 1
  35. '#main_frame, .code_box, ol, #code_frame div {background-color: #101C27 !important; border-bottom: 1px solid #153550 !important;}'
  36. +
  37. // BORDERS 1
  38. '#content_frame, #monster_frame {border-bottom: 1px solid #153550 !important; border-right: 1px solid #153550 !important; border-left: 1px solid #153550 !important;}'
  39. +
  40. // TEXT COLOR 1
  41. 'body, .content_right_title a, a.folder_link, .code_box, #code_frame div, h1, h2, h3, h4, h5, h6, p {color: #bfcace !important;}'
  42. +
  43. // TEXT COLOR 2
  44. '.content_title, ol {color: #4cace9 !important;}'
  45. +
  46. // LINK COLOR 1
  47. '.maintable td a, .select2-dropdown {color: #2D77E7 !important;}'
  48. +
  49. '.maintable td a:hover, .main-heading {color: #80ADF3 !important;}'
  50. +
  51. '.code_box, #code_frame2, .login_field, input[type="checkbox"] + label span, .well, .btn-selectable {border: 1px solid #153550 !important}'
  52. +
  53. 'textarea.paste_code, textarea.paste_textarea, textarea, input, select, #code_frame, .message_top, .select2-container--default .select2-selection--single .select2-selection__rendered, .select2-container--default .select2-selection--single {background-color: #253845 !important; border: 1px solid #2f5a7e !important; color: #bed4e9 !important;}'
  54. +
  55. 'img {opacity: .85 !important;}'
  56. +
  57. '.nav-filters > li > a {color: #b3d4e6 !important;}'
  58. +
  59. '.content_title {border-bottom: 2px solid #1e3c59 !important;}'
  60. +
  61. '.form_login_frame {border-bottom: 2px solid #174160 !important; border-left: 1px solid #143f5f !important;}'
  62. +
  63. '#content_right {background: none !important;}'
  64. +
  65. '.right_menu li {border-top: 1px dotted #2e6ead !important; color: #b5d0e1 !important;}'
  66. +
  67. '.custom-file-input:hover::before, .custom-file-input:active::before, input.button1:hover, .button1:hover {color: #bed4e9 !important;}'
  68. +
  69. '.paste_box_icon, .form_avatar {border: 1px solid #26699b !important;}'
  70. +
  71. '.button1, .button2, input.button1, .my-account-body {background-color: #1b445f !important; border-bottom: 2px solid #11314d !important; color: #cedfed !important;}'
  72. +
  73. '#steadfast {filter:brightness(.7) !important; opacity: .9 !important;}'
  74. +
  75. '#error {background-color: #30100c !important; border: 1px solid #861C14 !important;}'
  76. +
  77. '.content_sub_title {border-bottom: 1px solid #19406c !important;}'
  78. +
  79. '.tools_screenshots img, .my-account-body {border: 1px solid #1f68b0 !important;}'
  80. +
  81. '.maintable th {border-bottom: 2px solid #145184 !important;}'
  82. +
  83. '.maintable td {border-bottom: 1px solid #1F527D !important;}'
  84. +
  85. '.maintable tr:hover, #code_frame div:hover {background-color: #122C3C !important;}'
  86. +
  87. '#code_buttons {background: #245584 !important; border-bottom: 1px solid #1d5381 !important;}'
  88. +
  89. '.text .de1, .text .de2, .account-body-container {border-left: 1px solid #152836 !important;}'
  90. +
  91. '.paste_box_line2, .paste_box_line_u2, .mega-menu .subnav-menu-label {color: #87c1f3 !important;}'
  92. +
  93. '.tagline {border-bottom: 1px solid #2d5674 !important;}'
  94. +
  95. '.tagline span {background: #2d5674 !important;}'
  96. +
  97. '#success {background-color: #114a1d !important; border: 1px solid #5E9520 !important;}'
  98. +
  99. '.pro_frame_big {border-right: 1px solid #162e3f !important;}'
  100. +
  101. '.pro_frame_life {background-color: #203F5D !important;}'
  102. +
  103. '.pro_frame, .pro_frame_life {border: 1px #1d5c9b solid !important; border-bottom: 2px solid #0c3b5f !important;}'
  104. +
  105. '.pro_frame_life_top, .gsc-cursor-box .gsc-cursor-page {background-color: #1F5081 !important; border: 1px solid #1e5387 !important;}'
  106. +
  107. '.buy_button {border-top: 1px #3491d5 dotted !important;}'
  108. +
  109. '.pro_frame, .pro_frame_life {background: #123D5D !important;}'
  110. +
  111. '.message_window, .my-account-header {border: 1px solid #1e4974 !important;}'
  112. +
  113. '.select2-dropdown {background-color: #1b507e !important; border: 1px solid #0f3e6c !important;}'
  114. +
  115. '.publisher-pastebin .hello-bar {background-color: #0E2C42 !important;}'
  116. +
  117. '.publisher-pastebin .hello-bar a, .js-module-title {color: #d3e2ea !important;}'
  118. +
  119. '.jumbotron, #sc-hero-unit, #page-hero-unit {background-color: #1a5778 !important;}'
  120. +
  121. '.navbar.navbar-master {box-shadow: 0 1px 0 0 #134468 !important;}'
  122. +
  123. 'input[type="checkbox"] + label span {background-color: #0d3f77;}'
  124. +
  125. '.publisher-pastebin .search-input-icon, .publisher-pastebin .shopping-cart-icon, .publisher-pastebin .navbar-default .navbar-nav > li > a, .publisher-pastebin .navbar-default .navbar-nav > li > a:hover, .publisher-pastebin .nav-item-link, .publisher-pastebin .dropdown-menu > li > a, .publisher-pastebin .dropdown-menu > li > a:hover, .publisher-pastebin .navbar-default .navbar-nav > .open > a {color: #D4E6EF !important;}'
  126. +
  127. '.navbar .mega-menu {background: #13293c !important; border-bottom: 1px solid #17314a !important; border-top: 1px solid #194e7b !important;}'
  128. +
  129. '.nav-filters-desktop, .category-footer {border-bottom: 1px solid #1b4b74 !important; border-top: 1px solid #1d4b8f !important;}'
  130. +
  131. '.categories-menu-container__refine-select.styled-select {background-color: #17416b !important; border: 1px solid #235b8c !important;}'
  132. +
  133. '.email-capture-modal .modal-content {background-color: #0e355c !important; filter: brightness(.6) !important;}'
  134. +
  135. '.sc-sale-unit {background: #142838 !important;}'
  136. +
  137. '.sale-detail-title, .site-contents .intelligent-module header a {color: #b1d2e1 !important;}'
  138. +
  139. '.buy-now-column .price-container {border-top: 1px solid #214f7b !important;}'
  140. +
  141. 'hr {border-top: 1px solid #21436f !important;}'
  142. +
  143. '.sc-sale-guarantee-box {border: 1px solid #1f5684 !important;}'
  144. +
  145. '.course .container-fluid {background-color: #0e1f2d !important;}'
  146. +
  147. '.course .nav > li.col-xs-4 a, .course .nav li.col-xs-3 a, .course .nav li.col-xs-6 a, .course .nav li.col-xs-12 a, .course .nav li a {color: #cadcec !important;}'
  148. +
  149. '.course #sc-share-buttons {background-color: #226ea5 !important; border: 1px solid #124990 !important;}'
  150. +
  151. '.cart .cart-products, .cart {background-color: #103044 !important;}'
  152. +
  153. '.cart {border: 1px solid #1f4c72 !important;}'
  154. +
  155. '.cart .cart-subtotal {background-color: #0a384e !important; border-top: 1px solid #1f5081 !important;}'
  156. +
  157. '.my-account-header {background-color: #0d2130 !important;}'
  158. +
  159. '.my-account-header .active, .well, .btn-selectable {background-color: #16303e !important;}'
  160. +
  161. '.nav-tabs > li > a:hover {border-color: #27709e #1e498a #19687a !important;}'
  162. +
  163. '.nav-tabs li a:hover {background-color: #101820 !important; border-bottom: 1px solid #385775 !important;}'
  164. +
  165. '.my-account-body .balance-highlight {background-color: #19303b !important; border-radius: 1em;}'
  166. +
  167. '.modal-dialog .modal-content {background-color: #092948 !important;}'
  168. +
  169. '.bubble {background-color: #153962 !important; border: 1px solid #0e4b90 !important; color: #c6daed !important;}'
  170. +
  171. '.course-outline > ul > li {background-color: #183b5d !important; border-color: #112b44 !important;}'
  172. +
  173. '.checkout-steps {background-color: #132c44 !important; border-bottom: 1px solid #173766 !important;}'
  174. +
  175. '.checkout-step-title, .gsc-selected-option, .gsc-control-cse div {color: #c5dde6 !important;}'
  176. +
  177. '.payment-info {border: solid #205796 !important;}'
  178. +
  179. '.navbar.navbar-master .simple-menu {background: #122541 !important; border: 1px solid #21588f !important;}'
  180. +
  181. '.simple-menu a:hover {background: #1b5a98 !important;}'
  182. +
  183. '#adBlock, .gsc-adBlock {display: none !important;}'
  184. +
  185. '.gsc-control-cse {border-color: #134977 !important; background-color: #0B3E80 !important;}'
  186. +
  187. '.gsc-control-cse div {background: #102233 !important;}'
  188. +
  189. '.gsc-webResult.gsc-result, .gsc-results .gsc-imageResult {border-color: #164E77 !important;}'
  190. +
  191. '.gs-webResult .gs-snippet, .gs-imageResult .gs-snippet, .gs-fileFormatType {color: #c1d4db !important;}'
  192. +
  193. '.gs-webResult.gs-result a.gs-title:hover, .gs-webResult.gs-result a.gs-title:hover b, .gs-imageResult a.gs-title:hover, .gs-imageResult a.gs-title:hover b, .gs-webResult.gs-result a.gs-title:link, .gs-webResult.gs-result a.gs-title:link b, .gs-imageResult a.gs-title:link, .gs-imageResult a.gs-title:link b {color: #5E87E9 !important;}'
  194. +
  195. '.gs-webResult div.gs-visibleUrl, .gs-imageResult div.gs-visibleUrl {color: #1e78ba !important;}'
  196. +
  197. '.gsc-above-wrapper-area {border-bottom: 1px solid #1B436B !important;}'
  198. );