warmane.com decancer

19/02/2020, 10:16:26

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name        warmane.com decancer
// @namespace   Violentmonkey Scripts
// @match       https://www.warmane.com/*
// @match       http://armory.warmane.com/*
// @match       http://forum.warmane.com/*
// @grant       none
// @version     1.0
// @author      -
// @description 19/02/2020, 10:16:26
// ==/UserScript==

function removeElement(elementId) {
// Removes an element from the document.
var element = document. getElementById(elementId);
element. parentNode. removeChild(element);}
function addGlobalStyle(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);
}

//base and armory
removeElement("page-frame");
addGlobalStyle('#page-content-wrapper { top: 70px !important; }');
addGlobalStyle('#page-content-wrapper { z-index: 1 !important; }');

addGlobalStyle('.navigation-wrapper .navigation { top: 6px !important; }');
addGlobalStyle('.navigation-wrapper .navigation-logo { top: -20px !important; transform: scaleY(0.7);}');

//forum
addGlobalStyle('.above_body { top: 0px !important; z-index: 1 !important;}');