Just Fix Sh1t

Fixing stuff all over the place

Versión del día 25/10/2021. Echa un vistazo a la versión más reciente.

// ==UserScript==
// @name			    Just Fix Sh1t
// @namespace		  GameAdjustmentsKoC
// @description		Fixing stuff all over the place
// @homepageURL   https://greasyfork.org/en/scripts/408233-just-fix-sh1t

// @include			  *.rycamelot.com/*main_src.php*
// @include			  *.beta.rycamelot.com/*main_src.php*
// @include		  	*apps.facebook.com/kingdomsofcamelot/*
// @include		  	*.rockyou.com/rya/*
// @license       CC-BY-4.0
// @connect	      greasyfork.org
// @version		  	1.0.5
// ==/UserScript==

function GM_addStyle(css) {
    var head, style;
    head = document.getElementsByTagName('head')[0];
    if (!head) { return; }
    style = document.createElement('style');
    style.type = 'text/css';
    style.innerHTML = css;
    head.appendChild(style);
}

// ****** CONQUEST ADJUSTMENTS ******
GM_addStyle('div.troopModal.largeModal.primaryContainer > div.borderbody > div.primarycontent { background: url("../img/troopBattle/troopBattle_bg.png") no-repeat,#d2ad55 !important; height: 1300px;');
GM_addStyle(".troopTopHalf > .wrapper > .troopSelectAttackingTroops { height: 865px;}");
GM_addStyle(".troopTopHalf > .wrapper > .troopSelectAttackingTroops .units { height: 793px;}");
GM_addStyle(".cmModalContainer.troopVictoryModal.recruit.cmModal2.mediumModal.primaryContainer {top: 700px !important;}"); // Comment this out if it becomes an issue outside of Conquest.

//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.
//GM_addStyle("div.mediumModal {    left: 120px !important;    top: 600px !important;}"); // Old Jousting adjustment, don't want to lose this yet.


// ****** JOUSTING ADJUSTMENTS ******
GM_addStyle(".joustingMatchmaking .opponents .opponent {height: 656px !important;}"); // Shows full stats on Jousting window when active
GM_addStyle(".joustingMatchmaking .stats_box {height: 564px !important;}"); // Shows full stats on Jousting window when active


// ****** FACEBOOK ADJUSTMENTS ******
GM_addStyle("._31e { position: inherit !important;}"); // stops scrolling
GM_addStyle("#rightCol { display: none !important;}");  // Removes the game Column from the right on FB
GM_addStyle("._2t-a, ._2t-8, ._6ce9 ._4mq3 .fbNubButton {display: none !important;}"); // Hides the FB Chat in the lower right of screen. 

// Commented the line below out due to not being able to purchase gems. 
// //GM_addStyle("._10.uiLayer._4-hy._3qw {display: none;}"); // Remove FB pop up blocking all FB Games 8/24/21