ureactor change static

try to take over the world!

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         ureactor change static
// @namespace    http://tampermonkey.net/
// @version      0.1.4
// @description  try to take over the world!
// @author       You
// @match        https://*.ureactor.zbj.com/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // icon
    // <link rel="shortcut icon" href="../images/favicon.ico" type="image/x-icon">
    var link = document.querySelector("link[rel*='icon']") || document.createElement('link');
    link.type = 'image/x-icon';
    link.rel = 'shortcut icon';
    link.href = 'https://cdn.sstatic.net/Sites/stackoverflow/img/favicon.ico';
    document.getElementsByTagName('head')[0].appendChild(link);

    // logo
    document.getElementsByClassName("logo")[0].innerHTML = "<img height=42 width=130 src='https://dev-proj.oss-cn-qingdao.aliyuncs.com/WechatIMG1.png' />";
    var logodelete = document.getElementsByClassName("logo")[1];
    if (logodelete !== null){
        logodelete.parentNode.removeChild(logodelete);
    }
    var borline = document.getElementsByClassName("bor-line")[0];
    if (borline !== null){
        borline.parentNode.removeChild(borline);
    }

    // footer
    document.getElementById("layout-foot").id = "footer";
    //document.getElementById("footer").className = "footer_class";
    document.getElementById("footer").innerHTML = "<p>Copyright © 2018 All right reserved 锐融天下 版权所有 京ICP备12037648号 京公网安备 11010802027681</p>";
    //var footer = document.getElementById("layout-foot");
    //if (footer != null){
    //    footer.parentNode.removeChild(footer);
    //}

    // links
    var links = document.getElementsByClassName("selected-link");
    if (links !== null){
        links[0].parentNode.removeChild(links[0]);
        links[1].parentNode.removeChild(links[1]);
    }
    var links2 = document.getElementsByClassName("selected-link");
    if (links2 !== null){
        links2[0].parentNode.removeChild(links2[0]);
    }
})();