Just Fix Sh1t

Fixing stuff all over the place

目前為 2021-08-24 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name			Just Fix Sh1t
// @namespace		RemoveGames
// @description		Fixing stuff all over the place

// @include			*.rycamelot.com/*main_src.php*
// @include			*.beta.rycamelot.com/*main_src.php*
// @include			*apps.facebook.com/kingdomsofcamelot/*
// @include			*.rockyou.com/rya/*
// @license			http://creativecommons.org/licenses/by/4.0/
// @version			1.0.3
// ==/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);
}

// Adjusts the window height of the Conquests
GM_addStyle(".troopTopHalf > .wrapper > .troopSelectAttackingTroops .units { height: 793px;}");
GM_addStyle(".troopTopHalf > .wrapper > .troopSelectAttackingTroops { height: 810px;}");
GM_addStyle('div.troopModal.largeModal.primaryContainer > div.borderbody > div.primarycontent { background: url("../img/troopBattle/troopBattle_bg.png") no-repeat,#d2ad55 !important;     height: 1165px;');

GM_addStyle("._2t-a, ._2t-8, ._6ce9 ._4mq3 .fbNubButton {display: none !important;}");

//GM_addStyle(".cmModalContainer.troopVictoryModal.recruit.cmModal2.mediumModal.primaryContainer, div.mediumModal > div.borderbody {padding-top: 400px !important;} ");
GM_addStyle("div.mediumModal {    left: 120px !important;    top: 600px !important;}");


// Adds to Jousting Tab 
GM_addStyle(".joustingMatchmaking .opponents .opponent {height: 656px !important;}");
GM_addStyle(".joustingMatchmaking .stats_box {height: 564px !important;}");

//FACEBOOK ADJUSTMENTS
GM_addStyle("._31e { position: inherit !important;}"); // stops scrolling
GM_addStyle("#rightCol { display: none !important;}");  // Removes the whole right Column from FB
GM_addStyle("._10.uiLayer._4-hy._3qw {display: none;}"); // Remove FB pop up blocking all FB Games