CSS Define

*NEW* adding JavaScript for CSS here and there in the ♥Hentai Heroes game♥

  1. // ==UserScript==
  2. // @name CSS Define
  3. // @namespace Haremheroes
  4. // @version 1.7.0
  5. // @description *NEW* adding JavaScript for CSS here and there in the ♥Hentai Heroes game♥
  6. // @author KominoStyle
  7. // @match http*://nutaku.haremheroes.com/*
  8. // @match http*://*.hentaiheroes.com/*
  9. // @match http*://*.pornstarharem.com/*
  10. // @run-at document-end
  11. // @grant none
  12. // @license MIT
  13. // ==/UserScript==
  14.  
  15. /*==========================================================*
  16. CSS-Addon:
  17. Stylus: https://add0n.com/stylus.html
  18. *-----------------------------------------------------------*
  19. £-*-
  20. +
  21. CSS-Script:
  22. https://userstyles.world/style/960/hentai-heroes-css-define
  23. *==========================================================*/
  24. /* =========
  25. GENERAL
  26. ========= */
  27.  
  28. // Define jQuery
  29. const $ = window.jQuery
  30.  
  31. // no eslint because window. is not used
  32. /* global membersList */
  33.  
  34. // Define CSS
  35. const sheet = (function() {
  36. const style = document.createElement('style');
  37. document.head.appendChild(style);
  38. return style.sheet;
  39. })();
  40.  
  41. const CurrentPage = window.location.pathname;
  42. const CurrentHref = window.location.href;
  43. //let iframePage = $('iframe').contents().find('body').attr('page') // works because tampermonkey adds script in iframe too
  44. const realPage = $('body').attr('page')
  45. const page = CurrentPage.split("/").pop(); //console.log(page) window.location.pathname.split("/").pop();
  46. const pageQuest = CurrentHref.split("/")[3]; //console.log(page) window.location.pathname.split("/").shift();
  47. const CurrentSearch = window.location.search;
  48. const pagesearch = page+CurrentSearch;
  49.  
  50. //localstorage
  51. const Clubmember_deserialized = JSON.parse(localStorage.getItem("CMID"));
  52. const ClubMember_deserialized = JSON.parse(localStorage.getItem("CMNL"));
  53. const CSSCurrentQuest_deserialized = JSON.parse(localStorage.getItem("QuestID"));
  54.  
  55. //shortcut var
  56. const CSSsClubChampion = '<a class="CSSDefine_round_button CSSDefine_button_blue" href="/club-champion.html" generic-tooltip="Club Champion" tooltip="Club Champion"><div class="ClubChampionIcn CSSDefineIcn"></div></a>'
  57. const CSSsChampion = '<a class="CSSDefine_round_button CSSDefine_button_blue" href="/champions-map.html" generic-tooltip="Champion" tooltip="Champion"><div class="ChampionIcn CSSDefineIcn"></div></a>'
  58. const CSSsEpicPachinko = '<a class="CSSDefine_round_button CSSDefine_button_red Pachinkohidden" href="" generic-tooltip="Epic Pachinko" tooltip="Epic Pachinko"><div class="PachinkoIcn CSSDefineIcn"></div></a>'
  59. const CSSsMythicPachinko = '<a class="CSSDefine_round_button CSSDefine_button_orange Pachinkohidden" href="" generic-tooltip="Mythic Pachinko" tooltip="Mythic Pachinko"><div class="PachinkoIcn CSSDefineIcn"></div></a>'
  60. const CSSsGreatPachinko = '<a class="CSSDefine_round_button CSSDefine_button_green Pachinkohidden" href="" generic-tooltip="Great Pachinko" tooltip="Great Pachinko"><div class="PachinkoIcn CSSDefineIcn"></div></a>'
  61. const CSSsLvLGirl = '<a class="CSSDefine_round_button CSSDefine_button_blue" href="/shop.html?type=potion" generic-tooltip="Leveling Girl" tooltip="Leveling Girl"><div class="LvLGirlIcn CSSDefineIcn"></div></a>'
  62. const CSSsAwakenGirl = '<a class="CSSDefine_round_button CSSDefine_button_blue" href="/shop.html?type=potion" generic-tooltip="Awakening Girl" tooltip="Awakening Girl"><div class="AwakenGirlIcn CSSDefineIcn"></div></a>'
  63. const CSSsUpgradeGirl = '<a class="CSSDefine_round_button CSSDefine_button_blue" href="/shop.html?type=gift" generic-tooltip="Upgrading Girl" tooltip="Upgrading Girl"><div class="UpgradGirlIcn CSSDefineIcn"></div></a>'
  64. const CSSsMarket = '<a class="CSSDefine_round_button CSSDefine_button_blue" href="/shop.html" generic-tooltip="Market" tooltip="Market"><div class="MarketIcn CSSDefineIcn"></div></a>'
  65. const CSSsVillain = '<a class="CSSDefine_round_button CSSDefine_button_blue Villainhidden" href="/map.html" generic-tooltip="Villain" tooltip="Villain"><div class="VillainIcn CSSDefineIcn"></div></a>'
  66. const CSSsQuest = '<a class="CSSDefine_round_button CSSDefine_button_blue" href="'+CSSCurrentQuest_deserialized+'" generic-tooltip="Current Quest" tooltip="Current Quest"><div class="QuestIcn CSSDefineIcn"></div></a>'
  67. const CSSsSideQuest = '<a class="CSSDefine_round_button CSSDefine_button_blue" href="/side-quests.html" generic-tooltip="Side Quest" tooltip="Side Quest"><div class="SideQuestIcn CSSDefineIcn"></div></a>'
  68. const CSSsLeague = '<a class="CSSDefine_round_button CSSDefine_button_blue Leagueshidden" href="/tower-of-fame.html" generic-tooltip="Leagues" tooltip="Leagues"><div class="LeaguesIcn CSSDefineIcn"></div></a>'
  69. const CSSsPhanteon = '<a class="CSSDefine_round_button CSSDefine_button_blue Phanteonhidden" href="/pantheon.html" generic-tooltip="Phanteon" tooltip="Phanteon"><div class="PhanteonIcn CSSDefineIcn"></div></a>'
  70. const CSSsDailyGoal = '<a class="CSSDefine_round_button CSSDefine_button_orange" href="/activities.html?tab=daily_goals" generic-tooltip="Daily Goals" tooltip="Daily Goals"><div class="ActivitiesIcn CSSDefineIcn"></div></a>'
  71. const CSSsMission = '<a class="CSSDefine_round_button CSSDefine_button_blue" href="/activities.html?tab=missions" generic-tooltip="Mission" tooltip="Mission"><div class="ActivitiesIcn CSSDefineIcn"></div></a>'
  72. const CSSsContests = '<a class="CSSDefine_round_button CSSDefine_button_green" href="/activities.html?tab=contests" generic-tooltip="Contests" tooltip="Contests"><div class="ActivitiesIcn CSSDefineIcn"></div></a>'
  73.  
  74.  
  75. //Get Club Member-ID
  76. if (realPage == 'clubs') { // membersList is missing
  77. const CMemberID = membersList.map(({id_member}) => id_member)
  78. //const CMemberID = $('#members tr').map(function () {return $(this).attr('sorting_id')}).toArray(); old Code
  79.  
  80. let Clubmember_serialized = JSON.stringify(CMemberID);
  81.  
  82. localStorage.setItem("CMID", Clubmember_serialized);
  83.  
  84. const CMemberNick = membersList.map(({nickname}) => nickname)
  85. const CMemberLvL = membersList.map(({level}) => level)
  86.  
  87. let ClubMember_serialized = JSON.stringify(CMemberNick && CMemberLvL);
  88.  
  89. localStorage.setItem("CMNL", ClubMember_serialized);
  90. }
  91.  
  92. /*if (page == 'clubs.html') {
  93. const CMemberID = $('#members tr').map(function () {return $(this).attr('sorting_id')}).toArray();
  94.  
  95. let Clubmember_serialized = JSON.stringify(CMemberID);
  96.  
  97. localStorage.setItem("CMID", Clubmember_serialized);
  98. }*/
  99.  
  100. //Leagues ID check
  101. if (realPage == 'leaderboard') {
  102. Clubmember_deserialized.forEach(Member => { //console.log(Member)
  103. $('tr[sorting_id='+Member+']').addClass('IsMember')
  104. })
  105. }
  106.  
  107. //Contest ID check
  108. if (realPage == 'activities') {
  109. Clubmember_deserialized.forEach(Member => { //console.log(Member)
  110. $('tr[sorting_id='+Member+']').addClass('IsMember')
  111. })
  112. }
  113.  
  114. if (realPage == 'home') {
  115. const CSSCurrentQuest = $('#homepage .continue_quest_home').map(function () {return $(this).attr('href')}).toArray();
  116.  
  117. let CSSCurrentQuest_serialized = JSON.stringify(CSSCurrentQuest);
  118.  
  119. localStorage.setItem("QuestID", CSSCurrentQuest_serialized);
  120. }
  121.  
  122. //Hide button "buy with kobans" for Bookshop & Giftshop
  123. if (realPage == 'shop') {
  124. //Hide button "buy with kobans" for Bookshop & Giftshop
  125. if(pagesearch == 'shop.html?type=potion' || pagesearch == 'shop.html?type=gift') {
  126. $('#shops button[rel=buy]').addClass('DONTbuy')
  127. }
  128. //Hide button "sell your Items" for Boostershop & Bookshop & Giftshop
  129. if(pagesearch == 'shop.html?type=booster' || pagesearch == 'shop.html?type=potion' || pagesearch == 'shop.html?type=gift') {
  130. $('#shops button[rel=sell]').addClass('DONTsell')
  131. }
  132. document.querySelector("#tabs-switcher > div[type=armor].market-menu-switch-tab").onclick = function() {delDontBuy() + delDontSell()};
  133. document.querySelector("#tabs-switcher > div[type=booster].market-menu-switch-tab").onclick = function() {delDontBuy() + addDontSell()};
  134. document.querySelector("#tabs-switcher > div[type=potion].market-menu-switch-tab").onclick = function() {addDontBuy() + addDontSell()};
  135. document.querySelector("#tabs-switcher > div[type=gift].market-menu-switch-tab").onclick = function() {addDontBuy() + addDontSell()};
  136.  
  137.  
  138. //Show button "Buy with Kobans" if the User wants to buy with Kobans
  139. $('#shops .left-container .bottom-container').append('<label type="button" id="GiveMeThisItem"><span id="show_terminal"><img title="Activate button" src="https://hh.hh-content.com/quest/ic_eyeopen.svg"></span></label>')
  140. document.querySelector("#GiveMeThisItem").onclick = function() {delDontBuy()}
  141.  
  142. //Show button "Sell Item" if the User wants to sell his Item
  143. $('#shops .right-container .bottom-container').append('<label type="button" id="SellThisItem"><span id="show_terminal"><img title="Activate button" src="https://hh.hh-content.com/quest/ic_eyeopen.svg"></span></label>')
  144. document.querySelector("#SellThisItem").onclick = function() {delDontSell()}
  145.  
  146.  
  147. //function for buy and sell button
  148. function addDontBuy() {
  149. $('#shops button[rel=buy]').addClass('DONTbuy')
  150. }
  151. function delDontBuy() {
  152. $('#shops button[rel=buy]').removeClass('DONTbuy')
  153. }
  154. function addDontSell() {
  155. $('#shops button[rel=sell]').addClass('DONTsell')
  156. }
  157. function delDontSell() {
  158. $('#shops button[rel=sell]').removeClass('DONTsell')
  159. }
  160. }
  161.  
  162. //Hide button "sell your Items" for Boostershop & Bookshop & Giftshop
  163.  
  164.  
  165. //Side-Quest
  166. if (realPage == 'side-quests') {
  167. $('.side-quest').has('.Read').addClass('complete')
  168. $('.side-quest').each(function() {
  169. $('.side-quest:not(:has(".slot.slot_xp"))').not('.complete').addClass('rewards').find('.Continue').removeClass('blue_button_L').addClass('purple_button_L').text('➥ Reward')
  170. })
  171. $('.side-quests-list').prepend($(".side-quest:has('.slot.slot_xp')"))
  172. /* Normales JavaScript
  173. document.querySelectorAll('.side-quest .slot.slot_xp').forEach(function(hasXP) {
  174. document.querySelector('.side-quests-list').prepend(hasXP.parentElement.parentElement)
  175. })
  176. */
  177. }
  178.  
  179. //document.querySelector('.side-quests-list').prepend(document.querySelectorAll('.side-quest .slot.slot_xp'))
  180.  
  181. //PoA changes
  182. if (realPage == 'event') {
  183. //Give girls more space if all Mission done
  184. $('#poa-content:not(:has(".selected"))').each(function() {
  185. $('#events #poa-content .animated-girl-display').addClass('MoreSpace')
  186. $('#events #poa-content .girl-avatar').addClass('MoreSpace')
  187. })
  188. //If "PoA reward Container" get clicked, remove more space for girls
  189. $("#nc-poa-tape-rewards .nc-poa-reward-container").click(function() {
  190. $('#events #poa-content .animated-girl-display').removeClass('MoreSpace')
  191. $('#events #poa-content .girl-avatar').removeClass('MoreSpace')
  192. })
  193. //Add Club Champion if "Go to Champion"
  194. $('#poa-content .buttons:has(button[data-href="/champions-map.html"])').append('<button data-href="club-champion.html" class="blue_button_L">Go to Club Champions</button>')
  195.  
  196. //"Go to" change to "➥"
  197. $('#poa-content .buttons button').each(function() {
  198. const Goto = $(this).text().replace('Go to','➥').replace('Defeat','➥')
  199. $(this).text(Goto)
  200. })
  201.  
  202. $('#events .nc-events-prize-locations-buttons-container a').each(function() {
  203. const Goto = $(this).text().replace('Go to','➥').replace('Defeat','➥')
  204. $(this).text(Goto)
  205. })
  206.  
  207. }
  208.  
  209. //Bang Event changes
  210. if (realPage == 'event') {
  211. $('#boss_bang .boss-bang-center-section').append($('#start-bang-button'))
  212. }
  213.  
  214. //PlaceOfPower /addons
  215. if (realPage == 'activities') {
  216. $('#pop_info .pop_thumb_title > span').each(function() {
  217. const HCCHKH = $(this).text().replace(/ *\([^)]*\) */g, "")
  218. $(this).text(HCCHKH)
  219. })
  220. $('#pop_info .pop_thumb_level > span').each(function() {
  221. const LVL = $(this).text().replace("Lvl", "LvL")
  222. $(this).text(LVL)
  223. })
  224. //just adding display: none; always (not like market)
  225. $('#pop .pop_list .pop-action-btn').addClass('hiddenPoP')
  226.  
  227. //Hide PoP-button /class=hiddenPoP = eye-button
  228. $('#pop_info').append('<label type="button" id="ShowPoP" class="hiddenPoP"><span id="show_PoP_terminal"><img title="Activate button" src="https://hh2.hh-content.com/quest/ic_eyeclosed.svg"></span></label>')
  229. document.querySelector("#ShowPoP").onclick = function() {addHiddenPoP()};
  230. //Show PoP-Button if the User wants to use them
  231. $('#pop_info').append('<label type="button" id="HiddenPoP" class=""><span id="show_PoP_terminal"><img title="Activate button" src="https://hh.hh-content.com/quest/ic_eyeopen.svg"></span></label>')
  232. document.querySelector("#HiddenPoP").onclick = function() {delHiddenPoP()};
  233.  
  234. //function for faster PoP button#pop #pop_info label#HiddenPoP
  235. function addHiddenPoP() {
  236. $('#pop .pop_list .pop-action-btn').addClass('hiddenPoP')
  237. $('#pop_info label#ShowPoP').addClass('hiddenPoP')//only for eye-button
  238. $('#pop_info label#HiddenPoP').removeClass('hiddenPoP')//only for eye-button
  239. }
  240. function delHiddenPoP() {
  241. $('#pop .pop_list .pop-action-btn').removeClass('hiddenPoP')
  242. $('#pop_info label#ShowPoP').removeClass('hiddenPoP')//only for eye-button
  243. $('#pop_info label#HiddenPoP').addClass('hiddenPoP')//only for eye-button
  244. }
  245. }
  246.  
  247. //DailyGoals /addons
  248. if (realPage == 'activities') {
  249. $('#daily_goals .daily-goals-objective-status > p').each(function() {
  250. const NoMatter = $(this).text().replace(/ *\([^)]*\) */g, "")
  251. $(this).text(NoMatter)
  252. })
  253.  
  254. $('#daily_goals .daily-goals-objectives-container').append(`<div class="daily-goals-objective">
  255. <div class="daily-goals-shortcut">
  256. <a class="CSSDefine_round_button CSSDefine_button_blue" href="/club-champion.html" generic-tooltip="Club Champion"><div class="ClubChampionIcn CSSDefineIcn"></div></a>
  257. <a class="CSSDefine_round_button CSSDefine_button_blue" href="/champions-map.html" generic-tooltip="Champion"><div class="ChampionIcn CSSDefineIcn"></div></a>
  258. <a class="CSSDefine_round_button CSSDefine_button_red Pachinkohidden" href="" generic-tooltip="Epic Pachinko"><div class="PachinkoIcn CSSDefineIcn"></div></a>
  259. <a class="CSSDefine_round_button CSSDefine_button_orange Pachinkohidden" href="" generic-tooltip="Mythic Pachinko"><div class="PachinkoIcn CSSDefineIcn"></div></a>
  260. <a class="CSSDefine_round_button CSSDefine_button_green Pachinkohidden" href="" generic-tooltip="Great Pachinko"><div class="PachinkoIcn CSSDefineIcn"></div></a>
  261. <a class="CSSDefine_round_button CSSDefine_button_blue" href="/shop.html?type=potion" generic-tooltip="Leveling Girl"><div class="LvLGirlIcn CSSDefineIcn"></div></a>
  262. <a class="CSSDefine_round_button CSSDefine_button_blue" href="/shop.html?type=potion" generic-tooltip="Awakening Girl"><div class="AwakenGirlIcn CSSDefineIcn"></div></a>
  263. <a class="CSSDefine_round_button CSSDefine_button_blue" href="/shop.html?type=gift" generic-tooltip="Upgrading Girl"><div class="UpgradGirlIcn CSSDefineIcn"></div></a>
  264. <a class="CSSDefine_round_button CSSDefine_button_blue" href="/shop.html" generic-tooltip="Market"><div class="MarketIcn CSSDefineIcn"></div></a>
  265. <a class="CSSDefine_round_button CSSDefine_button_blue Villainhidden" href="/map.html" generic-tooltip="Villain"><div class="VillainIcn CSSDefineIcn"></div></a>
  266. <a class="CSSDefine_round_button CSSDefine_button_blue" href="`+CSSCurrentQuest_deserialized+`" generic-tooltip="Current Quest"><div class="QuestIcn CSSDefineIcn"></div></a>
  267. <a class="CSSDefine_round_button CSSDefine_button_blue" href="/side-quests.html" generic-tooltip="Side Quest"><div class="SideQuestIcn CSSDefineIcn"></div></a>
  268. <a class="CSSDefine_round_button CSSDefine_button_blue Leagueshidden" href="/tower-of-fame.html" generic-tooltip="Leagues"><div class="LeaguesIcn CSSDefineIcn"></div></a>
  269. <a class="CSSDefine_round_button CSSDefine_button_blue Phanteonhidden" href="/pantheon.html" generic-tooltip="Phanteon"><div class="PhanteonIcn CSSDefineIcn"></div></a>
  270. </div>
  271. </div>`)
  272.  
  273. $('#daily_goals .potions-total p').attr('id', 'Potion-Points')
  274. $("#daily_goals div.daily-goals-right-part img").attr('id', 'DailyGirlRewards')
  275. const PotionsTotal = document.getElementById('Potion-Points').innerHTML
  276.  
  277.  
  278. const DailyGirl = "https://hh2.hh-content.com/pictures/girls/354002053/"
  279. const DailyGirl0 = "ava0-1200x.webp"
  280. const DailyGirl1 = "ava1-1200x.webp"
  281. const DailyGirl2 = "ava2-1200x.webp"
  282. const DailyGirl3 = "ava3-1200x.webp"
  283.  
  284. if (PotionsTotal > 99) {
  285. $("#DailyGirlRewards").attr('src', DailyGirl + DailyGirl3)
  286. } else if (PotionsTotal > 59) {
  287. $("#DailyGirlRewards").attr('src', DailyGirl + DailyGirl2)
  288. } else if (PotionsTotal > 19) {
  289. $("#DailyGirlRewards").attr('src', DailyGirl + DailyGirl1)
  290. } else if (PotionsTotal > 0) {
  291. $("#DailyGirlRewards").attr('src', DailyGirl + DailyGirl0)
  292. }
  293.  
  294. document.querySelector("#Potion-Points").onclick = function() {previewDailyGirl0()};
  295. document.querySelector("#daily_goals .daily-goals-left-part div.progress-bar-rewards-container > div:nth-child(1) > p").onclick = function() {previewDailyGirl1()};
  296. document.querySelector("#daily_goals .daily-goals-left-part div.progress-bar-rewards-container > div:nth-child(3) > p").onclick = function() {previewDailyGirl2()};
  297. document.querySelector("#daily_goals .daily-goals-left-part div.progress-bar-rewards-container > div:nth-child(5) > p").onclick = function() {previewDailyGirl3()};
  298.  
  299. function previewDailyGirl0(){
  300. $("#DailyGirlRewards").attr('src', DailyGirl + DailyGirl0)
  301. }
  302. function previewDailyGirl1(){
  303. $("#DailyGirlRewards").attr('src', DailyGirl + DailyGirl1)
  304. }
  305. function previewDailyGirl2(){
  306. $("#DailyGirlRewards").attr('src', DailyGirl + DailyGirl2)
  307. }
  308. function previewDailyGirl3(){
  309. $("#DailyGirlRewards").attr('src', DailyGirl + DailyGirl3)
  310. }
  311. }
  312.  
  313. //Pantheon /addons
  314.  
  315. if (realPage == 'pantheon') {
  316. $('#pantheon_tab_container .temple-name-bgr .text-container > div').each(function() {
  317. const LVL = $(this).text().replace("Lvl", "LvL")
  318. $(this).text(LVL)
  319. })
  320. }
  321.  
  322. //Harem /addons
  323. if (realPage == 'harem') {
  324. $('#harem_left .right .g_infos .lvl > span').each(function() {
  325. const LVL = $(this).text().replace("Lvl", "LvL")
  326. $(this).text(LVL)
  327. })
  328. }
  329.  
  330. //HH++ script
  331. /*if (page = 'home.html') {
  332.  
  333.  
  334. $('#contains_all .hh-plus-plus-config-panel').each(function() {
  335. //just adding display: none; always (not like market)
  336. $('.hh-plus-plus-config-panel .config-setting:is([rel="core_marketHideSellButton"])').addClass('hiddenHHConfig')
  337. //Hide Config that can conflict with this script
  338. $('#contains_all .hh-plus-plus-config-panel').append('<label type="button" id="ShowHHConfig" class="hiddenHHConfig"><span id="show_HHConfig_terminal"><img title="Show Hidden Config" src="https://hh2.hh-content.com/quest/ic_eyeclosed.svg"></span></label>')
  339. //Show Config that can conflict with this script
  340. $('#contains_all .hh-plus-plus-config-panel').append('<label type="button" id="HideHHConfig" class=""><span id="show_HHConfig_terminal"><img title="Hide red Config" src="https://hh.hh-content.com/quest/ic_eyeopen.svg"></span></label>')
  341. })
  342. document.querySelector("#ShowHHConfig").onclick = function() {addHiddenHHConfig()};
  343. document.querySelector("#HideHHConfig").onclick = function() {delHiddenHHConfig()};
  344.  
  345. //function for faster PoP button#pop #pop_info label#HiddenPoP
  346. function addHiddenHHConfig() {
  347. $('#contains_all .hh-plus-plus-config-panel .config-setting:is([rel="core_marketHideSellButton"])').addClass('hiddenHHConfig')
  348. $('#pop_info label#ShowHHConfig').addClass('hiddenHHConfig')//only for eye-button
  349. $('#pop_info label#HideHHConfig').removeClass('hiddenHHConfig')//only for eye-button
  350. }
  351. function delHiddenHHConfig() {
  352. $('#contains_all .hh-plus-plus-config-panel.config-setting:is([rel="core_marketHideSellButton"])').removeClass('hiddenHHConfig')
  353. $('#pop_info label#ShowHHConfig').removeClass('hiddenHHConfig')//only for eye-button
  354. $('#pop_info label#HideHHConfig').addClass('hiddenHHConfig')//only for eye-button
  355. }
  356. }*/
  357.  
  358. /*New Homescreen*/
  359. /*if (page == 'home.html' || page == 'homepage.html') {*/
  360. if (realPage == 'home') {
  361. const questContainer = '<div class="quest-container"></div>'
  362. const noWaifuDisplay = $('#homepage .main-container .left-side-container .quest-container')
  363. if (!$('#homepage .main-container .waifu-container > img').length && !$('#homepage .main-container .waifu-container > canvas').length) {
  364. noWaifuDisplay.addClass('NoWaifuSelected')
  365. }
  366. $('#homepage .main-container .middle-container .waifu-and-right-side-container .right-side-container .event-widget-container .bundles').addClass('Fucking-Bundles')
  367.  
  368. if (!$("#homepage .main-container .left-side-container .quest-container:has('a[rel=sex-god-path]')").length) {
  369. $('#homepage .main-container .left-side-container a[rel=sex-god-path]').wrap(questContainer) // must be created befor adding CSS-Define Button
  370. }
  371. if (!$("#homepage .main-container .left-side-container .quest-container:has('a[rel=clubs]')").length) {
  372. $('#homepage .main-container .left-side-container a[rel=clubs]').wrap(questContainer) // must be created befor adding CSS-Define Button
  373. }
  374. if (!$("#homepage .main-container .left-side-container .quest-container:has('a[rel=activities]')").length) {
  375. $('#homepage .main-container .left-side-container a[rel=activities]').wrap(questContainer) // must be created befor adding CSS-Define Button
  376. } // must be created befor adding CSS-Define Button
  377. $("#homepage .main-container .left-side-container .quest-container:has('a[rel=sex-god-path]')").append(`<div class="CSS-Container CSS-Container-sex-god-path">`+CSSsChampion+``+CSSsPhanteon+`</div>`)
  378. $("#homepage .main-container .left-side-container .quest-container:has('a[rel=clubs]')").append(`<div class="CSS-Container CSS-Container-clubs">`+CSSsClubChampion+`</div>`)
  379. $("#homepage .main-container .left-side-container .quest-container:has('a[rel=activities]')").append(`<div class="CSS-Container CSS-Container-activities">`+CSSsDailyGoal+``+CSSsMission+``+CSSsContests+`</div>`)
  380. $("div.script-home-shortcut-container:has('.script-home-shortcut-club-champ')").remove()
  381. $("div.script-home-shortcut-container:has('.script-home-shortcut-pantheon')").remove()
  382. }
  383.  
  384.  
  385.  
  386. /*if (realPage == 'shop') {
  387. const CSSDefine_GirlsListNav = '<div class="CSSDefine_GirlsListNav"></div>'
  388. const CSSDefine_ArrowLeft = '<span nav="left"></span>'
  389. const CSSDefine_ArrowRight = '<span nav="right"></span>'
  390. $('#shops #girls_list').prepend(CSSDefine_GirlsListNav)
  391. $('#shops #girls_list .CSSDefine_GirlsListNav').prepend(CSSDefine_ArrowLeft)
  392. $('#shops #girls_list .CSSDefine_GirlsListNav').prepend(CSSDefine_ArrowRight)
  393. //$('#shops #girls_list .CSSDefine_GirlsListNav').prepend($('#shops #girls_list span[nav=left]'))
  394. //$('#shops #girls_list .CSSDefine_GirlsListNav').prepend($('#shops #girls_list span[nav=right]'))
  395. $('#shops #girls_list span[nav][nav=left]').attr('generic-tooltip', '\"A\" or \"ArrowLeft\"')
  396. $('#shops #girls_list span[nav][nav=right]').attr('generic-tooltip', '\"D\" or \"ArrowRight\"')
  397. //event for GirlListNav
  398. document.addEventListener('keydown', shop_GirlListNav)
  399. }*/
  400.  
  401. if (realPage == 'event') {
  402. document.addEventListener('keydown', bossBang)
  403. }
  404.  
  405. /*if (realPage == 'shop') {
  406. if ($('#shops_left #shop .potion.selected')) {
  407. $('#shops_left #shop .potion.selected:first-child').attr('lol', '\"A\" or \"ArrowLeft\"')
  408. document.addEventListener('keydown', shop_GirlListNav)
  409. }
  410. }*/
  411.  
  412.  
  413. /*!♥Koͨmͧiͭnͥoͤ Style♥!*/
  414.  
  415.  
  416. function shop_GirlListNav(e) {
  417. //this adds A & LeftArrow
  418. if (e.key == 'a' || e.key == 'ArrowLeft') {
  419. $('#shops #girls_list span[nav][nav=left]').click()
  420. }
  421. if (e.key == 'd' || e.key == 'ArrowRight') {
  422. $('#shops #girls_list span[nav][nav=right]').click()
  423. }
  424. }
  425.  
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434.