HH - CSS Darkmode

Adding CSS here and there in the ♥Hentai Heroes game♥

Mint 2021.04.12.. Lásd a legutóbbi verzió

  1. // ==UserScript==
  2. // @name HH - CSS Darkmode
  3. // @namespace Haremheroes
  4. // @version 0.0.0.1
  5. // @description Adding CSS here and there in the ♥Hentai Heroes game♥
  6. // @author !♥Koͨmͧiͭnͥoͤ Style♥!
  7. // @match http*://nutaku.haremheroes.com/*
  8. // @match http*://*.hentaiheroes.com/*
  9. // @require https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.js
  10. // @run-at document-end
  11. // @grant none
  12. // @license MIT
  13. // ==/UserScript==
  14.  
  15. /* =========
  16. GENERAL
  17. ========= */
  18.  
  19. // Define jQuery
  20. var $ = window.jQuery;
  21.  
  22. // Define CSS
  23. var sheet = (function() {
  24. var style = document.createElement('style');
  25. document.head.appendChild(style);
  26. return style.sheet;
  27. })();
  28.  
  29. var CurrentPage = window.location.pathname;
  30.  
  31. //Function Lightbox
  32. $(document).ready(function() {
  33. //include lightbox css
  34. $(document.head).append(
  35. '<link href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.css" rel="stylesheet" type="text/css">'
  36. );
  37. //define own css
  38. defineCss();
  39. });
  40.  
  41. //Hide some Buttons
  42.  
  43. var start = function () {
  44. $('.redirect.gayharem').hide();
  45.  
  46. $('#starter_offer').hide();
  47. $('#starter_offer_background').hide();
  48.  
  49. $('#controls button[rel=next][act=HC]').hide();
  50.  
  51. };
  52.  
  53. function defineCss()
  54. {
  55. //Main Css
  56. sheet.insertRule('.base_block {'
  57. + 'background: #000000 repeat !important;'
  58. + 'box-shadow: 0 3px 10px 0 #000 !important;'
  59. + 'border: solid #ff7300 1px !important;}'
  60. );
  61. sheet.insertRule('.sub_block {'
  62. + 'background: rgb(0 0 0 / 69%) !important;}'
  63. );
  64. //Harem
  65. sheet.insertRule('.global-container {'
  66. + 'background-image: url(https://hh2.hh-content.com/pictures/design/dex_bg_pattern.png),linear-gradient(to top,#000000 0,#000000 1%,#000000 100%) !important;'
  67. + 'box-shadow: inset 0 0 40px 15px #66203400 !important;}'
  68. );
  69. //Harem Left
  70. sheet.insertRule('#harem_left {'
  71. + 'box-shadow: 0 0 5px #bd284b7d, inset 0 0 8px #bd284b !important;'
  72. + 'background-color: rgb(79 34 46 / 0%) !important;}'
  73. );
  74. sheet.insertRule('#harem_left div.girls_list {'
  75. + 'box-shadow: inset 0 -35px 30px -34px #3c121d00;}'
  76. );
  77. sheet.insertRule('#harem_left div.girls_list.grid_view {'
  78. + 'border-top: 1px solid #bd284b;'
  79. + 'border-bottom: 1px solid #bd284b;}'
  80. );
  81. //OCD Script info
  82. sheet.insertRule('#TabsContainer {'
  83. + 'position: absolute; '
  84. + 'z-index: 99; '
  85. + 'bottom: 69px; '
  86. + 'left: 17px; '
  87. + 'width: 240px !important; '
  88. + 'height: 270px !important; '
  89. + 'overflow-y: scroll; '
  90. + 'box-sizing: content-box; '
  91. + 'border: 1px solid rgb(156, 182, 213); '
  92. + 'box-shadow: 1px -1px 1px 0px rgba(0,0,0,0.3) !important; '
  93. + 'font: normal 10px/16px Tahoma, Helvetica, Arial, sans-serif; '
  94. + 'color: #ffffff !important; '
  95. + 'background: #000000f0 !important; '
  96. + 'display: flex;}'
  97. );
  98. //Club
  99. sheet.insertRule('.inner_club_tables>.lead_table_view::after {'
  100. + 'opacity: 0;}'
  101. );
  102. sheet.insertRule('.club-wrapper>.club-container {'
  103. + 'background-image: url(https://hh2.hh-content.com/pictures/design/dex_bg_pattern.png),linear-gradient(to top,#000000 0,#000000 1%,#000000 100%) !important;'
  104. + 'box-shadow: inset 0 0 40px 15px #66203400 !important;}'
  105. );
  106. //Club Details
  107. sheet.insertRule('.club_dashboard .club_information.light_subpanel_box {'
  108. + 'box-shadow: 0 0 5px rgb(45 8 17 / 0%), inset 0 0 8px rgb(0 255 87 / 0%) !important;}'
  109. );
  110. sheet.insertRule('.light_subpanel_box {'
  111. + 'background-color: rgb(0 0 0 / 50%) !important;'
  112. + 'background-image: linear-gradient(to right,#65273a00 0,rgb(116 63 88 / 0%) 100%) !important;'
  113. + 'box-shadow: 0 0 5px rgb(45 8 17 / 0%), inset 0 0 8px rgb(0 255 87 / 0%) !important;}'
  114. );
  115. sheet.insertRule('.club_dashboard .club_information>.dark_subpanel_box {'
  116. + 'border: 1px solid #bd284b !important;}'
  117. );
  118. sheet.insertRule('.club_dashboard .club_information .line {'
  119. + 'background-color: #bd284b !important;}'
  120. );
  121. //Club Champ Container
  122. sheet.insertRule('.club-wrapper>.club-container .club_champions_details_container {'
  123. + 'background: linear-gradient(to bottom,#743f5800 0%,#65273a00 0%) !important;}'
  124. );
  125. sheet.insertRule('.club_champions_bar_container {'
  126. + 'box-shadow: #fff 0px 0px 0px 0.1px !important;}'
  127. );
  128. //Club Upgrade Container
  129. sheet.insertRule('.dark_subpanel_box {'
  130. + 'box-shadow: inset 0 0 40px 15px #66203400 !important;'
  131. + 'background-color: #00000000;}'
  132. );
  133. //Season
  134. sheet.insertRule('.seasons_bgr {'
  135. + 'background-image: url(https://hh2.hh-content.com/pictures/design/dex_bg_pattern.png),linear-gradient(to top,#000000 0,#000000 1%,#000000 100%) !important;'
  136. + 'box-shadow: inset 0 0 40px 15px #66203400 !important;}'
  137. );
  138. sheet.insertRule('.reward_placeholder {'
  139. + 'background-color: rgb(59 19 35 / 0%);}'
  140. );
  141. sheet.insertRule('.info_bgr {'
  142. + 'background-image: linear-gradient(to top,rgb(0 0 0) 0,rgb(0 0 0 / 85%) 1%,rgb(0 0 0 / 85%) 100%);}'
  143. );
  144. //Leaderboard
  145. sheet.insertRule('.leaderboard_list {'
  146. + 'border-top: 1px solid #bd284b;'
  147. + 'border-bottom: 1px solid #bd284b;}'
  148. );
  149. //Activities
  150. //Mission
  151. sheet.insertRule('#contests>div>div.left_part>.scroll_area>.nicescroll-rails {'
  152. + 'background-color: rgb(0 0 0 / 0%) !important;}'
  153. );
  154. sheet.insertRule('#contests>div>div.right_part .over_panel {'
  155. + 'background: rgb(0 0 0 / 69%) !important;'
  156. + 'border-top: 1px solid #bd284b;'
  157. + 'border-bottom: 1px solid #bd284b;}'
  158. );
  159. //Market
  160. sheet.insertRule('#shops>div.base_block {'
  161. + 'background-image: url(https://hh2.hh-content.com/market_bg.svg) !important;}'
  162. );
  163. //League
  164. sheet.insertRule('.lead_table .lead_table_view::after {'
  165. + 'opacity: 0 !important;}'
  166. );
  167. sheet.insertRule('.lead_table table tbody tr {'
  168. + 'background-color: rgb(191 40 90 / 0%);}'
  169. );
  170. //Player Info
  171. sheet.insertRule('.player_block {'
  172. + 'background-color: rgb(0 0 0) !important;'
  173. + 'background-image: linear-gradient(to right,rgb(0 0 0) 0,rgb(0 0 0) 100%) !important;'
  174. + 'box-shadow: 0 0 5px #bd284b7d, inset 0 0 8px #bd284b; !important;}'
  175. );
  176. //Troll fight
  177. sheet.insertRule('#arena .base_block, #battle .base_block, #battle_change_team .base_block {'
  178. + 'background-image: url(https://hh2.hh-content.com/battle_bg.svg) !important;}'
  179. );
  180. //Pachinko
  181. //Epic
  182. sheet.insertRule('.playing-zone[type-panel=epic] .container {'
  183. + 'background-color: #000000 !important;'
  184. + 'box-shadow: 0 0 20px rgb(192 0 72 / 50%), inset 0 0 50px rgb(192 0 72 / 40%) !important;'
  185. + 'background-image: url(https://hh2.hh-content.com/pictures/design/dex_bg_pattern.png) !important;}'
  186. );
  187. //Mythic
  188. sheet.insertRule('.playing-zone[type-panel=mythic] .container {'
  189. + 'background-color: #000000 !important;'
  190. + 'box-shadow: 0 0 20px rgb(255 144 0 / 50%), inset 0 0 50px rgb(255 144 0 / 40%) !important;'
  191. + 'background-image: url(https://hh2.hh-content.com/pictures/design/dex_bg_pattern.png) !important;}'
  192. );
  193. //Great
  194. sheet.insertRule('.playing-zone[type-panel=great] .container {'
  195. + 'background-color: #000000 !important;'
  196. + 'box-shadow: 0 0 20px rgb(13 165 79 / 50%), inset 0 0 50px rgb(13 165 79 / 40%) !important;'
  197. + 'background-image: url(https://hh2.hh-content.com/pictures/design/dex_bg_pattern.png) !important;}'
  198. );
  199. //Event
  200. sheet.insertRule('.playing-zone[type-panel=event] .container {'
  201. + 'background-color: #000000 !important;'
  202. + 'box-shadow: 0 0 20px rgb(23 14 214 / 50%), inset 0 0 50px rgb(23 14 214 / 40%) !important;'
  203. + 'background-image: url(https://hh2.hh-content.com/pictures/design/dex_bg_pattern.png) !important;}'
  204. );
  205. //Sex Champions
  206. //Reception Desk
  207. sheet.insertRule('.help-screen-border-gradient .help-screen-container {'
  208. + 'box-shadow: inset 0 0 40px 15px #66203400 !important;'
  209. + 'background-image: url(https://hh2.hh-content.com/pictures/design/dex_bg_pattern.png),linear-gradient(to top,#000000 0,#000000 1%,#000000 100%) !important;}'
  210. );
  211. sheet.insertRule('.dark_subpanel_box_border {'
  212. + 'box-shadow: inset 0 0 40px 15px #66203400 !important;'
  213. + 'background-color: #00000000 !important;}'
  214. );
  215. sheet.insertRule('.help-screen-border-gradient .hidden-item {'
  216. + 'filter: brightness(100) !important;}'
  217. );
  218. //NewsInbox
  219. sheet.insertRule('.container-special-bg {'
  220. + 'background-image: url(https://hh2.hh-content.com/pictures/design/dex_bg_pattern.png),linear-gradient(to top,#000000 0,#000000 1%,#000000 100%) !important;'
  221. + 'box-shadow: inset 0 0 40px 15px #66203400 !important;}'
  222. );
  223. //Club Chat - KominoStyle Only
  224. sheet.insertRule('.chat-absolute-position {'
  225. + 'width: 869px;'
  226. + 'height: 869px;}'
  227. );
  228. //Eye Safer
  229. sheet.insertRule('body {'
  230. + 'background-color: black;}'
  231. );
  232. }