Just Fix Sh1t

Fixing stuff all over the place

当前为 2021-10-25 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Just Fix Sh1t
  3. // @namespace GameAdjustmentsKoC
  4. // @description Fixing stuff all over the place
  5. // @homepageURL https://greasyfork.org/en/scripts/408233-just-fix-sh1t
  6.  
  7. // @include *.rycamelot.com/*main_src.php*
  8. // @include *.beta.rycamelot.com/*main_src.php*
  9. // @include *apps.facebook.com/kingdomsofcamelot/*
  10. // @include *.rockyou.com/rya/*
  11. // @license CC-BY-4.0
  12. // @connect greasyfork.org
  13. // @version 1.0.5
  14. // ==/UserScript==
  15.  
  16. function GM_addStyle(css) {
  17. var head, style;
  18. head = document.getElementsByTagName('head')[0];
  19. if (!head) { return; }
  20. style = document.createElement('style');
  21. style.type = 'text/css';
  22. style.innerHTML = css;
  23. head.appendChild(style);
  24. }
  25.  
  26. // ****** CONQUEST ADJUSTMENTS ******
  27. GM_addStyle('div.troopModal.largeModal.primaryContainer > div.borderbody > div.primarycontent { background: url("../img/troopBattle/troopBattle_bg.png") no-repeat,#d2ad55 !important; height: 1300px;');
  28. GM_addStyle(".troopTopHalf > .wrapper > .troopSelectAttackingTroops { height: 865px;}");
  29. GM_addStyle(".troopTopHalf > .wrapper > .troopSelectAttackingTroops .units { height: 793px;}");
  30. GM_addStyle(".cmModalContainer.troopVictoryModal.recruit.cmModal2.mediumModal.primaryContainer {top: 700px !important;}"); // Comment this out if it becomes an issue outside of Conquest.
  31.  
  32. //GM_addStyle(".cmModalContainer.troopVictoryModal.recruit.cmModal2.mediumModal.primaryContainer, div.mediumModal > div.borderbody {padding-top: 400px !important;} "); // Old Jousting adjustment, don't want to lose this yet.
  33. //GM_addStyle("div.mediumModal { left: 120px !important; top: 600px !important;}"); // Old Jousting adjustment, don't want to lose this yet.
  34.  
  35.  
  36. // ****** JOUSTING ADJUSTMENTS ******
  37. GM_addStyle(".joustingMatchmaking .opponents .opponent {height: 656px !important;}"); // Shows full stats on Jousting window when active
  38. GM_addStyle(".joustingMatchmaking .stats_box {height: 564px !important;}"); // Shows full stats on Jousting window when active
  39.  
  40.  
  41. // ****** FACEBOOK ADJUSTMENTS ******
  42. GM_addStyle("._31e { position: inherit !important;}"); // stops scrolling
  43. GM_addStyle("#rightCol { display: none !important;}"); // Removes the game Column from the right on FB
  44. GM_addStyle("._2t-a, ._2t-8, ._6ce9 ._4mq3 .fbNubButton {display: none !important;}"); // Hides the FB Chat in the lower right of screen.
  45.  
  46. // Commented the line below out due to not being able to purchase gems.
  47. // //GM_addStyle("._10.uiLayer._4-hy._3qw {display: none;}"); // Remove FB pop up blocking all FB Games 8/24/21
  48.