Greasy Fork

ureactor change static

try to take over the world!

目前为 2019-08-28 提交的版本。查看 最新版本

// ==UserScript==
// @name         ureactor change static
// @namespace    http://tampermonkey.net/
// @version      0.1.3
// @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://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1566808889663&di=30fd68e089504d52384d149dbb00d684&imgtype=0&src=http%3A%2F%2Fwww.mobiletrain.org%2Fd%2Ffile%2Fabout%2Fmoney%2F246edbd8e4fe0655524e7661d22951d4.jpg' />";
    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 2006-2019 JB51.Net Inc All Rights Reserved. 脚本之家 版权所有</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]);
    }
})();