Raw Source
Redcrafter / Proxer ReDesign

// ==UserScript==
// @name         Proxer ReDesign
// @namespace    PrFs
// @version      1.3.0
// @description  Read the title.
// @author       Redcrafter
// @updateURL    https://openuserjs.org/meta/Redcrafter/My_Script.meta.js
// @match        *://proxer.me/*
// @require      https://greasyfork.org/scripts/12981-proxer-userscript-anker/code/Proxer-Userscript-Anker.js?version=81145
// @run-at       document-start
// @grant        GM_setValue
// @grant        GM_getValue
// ==/UserScript==

document.cookie = "style=black;";

addAnkerMember('reDesign', 'ReDesign', true, screen_actionControl, 'screen', 0);

document.cookie = "style = black";

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

function screen_actionControl(change){
    if(change === true){
        if(GM_getValue("screen",0) === 0){
            window.location.reload();
        } else {
            screenToggle();
        }
    } else {
        screenToggle();
    }
}

function banner(){
if(document.cookie.match("tmode=ht"))
    document.getElementById("main").style = "margin-top: 350px !important";
else if (document.cookie.match("tmode=lt"))
    document.getElementById("main").style = "margin-top: 350px";
}

function screenToggle(){
    if (GM_getValue("screen",0) === 0) {
        return;
    }
    document.getElementsByClassName("colorbox")[0].parentElement.remove();
    document.getElementById("tmode").addEventListener("click", banner);
    //document.getElementById("proxerSearch1").parentElement.style["margin-top"] = "6px";

    banner();

    addGlobalStyle("@media screen and (min-width: 1900px){#accordion #box-table-a{width:50%;float:left}}img[src='/images/misc/onlineicon.png']{height:22px;width:22px}#wrapper{max-width:none!important}#main{border:none;margin:40px 0 0!important}.inner{max-width:none!important;margin-left:10px!important;margin-right:10px!important;margin-bottom:0!important}#innerNav{max-width:none!important}ul#simple-navi,ul#simple-navi-wiki{border-radius:0!important;height:32px;padding:0}ul#simple-navi li{margin:0;line-height:12px}ul#simple-navi li a{padding:10px;border-radius:0;border-radius:1px 1px 0 0;height:100%}.topmenu ul{border-radius:0}a.menu{border-radius:1px}#outerNav{max-width:none}body{margin-bottom:0!important;background-color:#000}.proxerSliderImage{width:99.5%!important}.proxerSliderText{width:99%!important;max-width:none!important}.arrow{left:40%!important}.arrowLeft{left:-40%!important}#Kunena #ktab a{border-radius:0}#Kunena #ktab li{margin:0!important}body{min-width:1149px}ul#simple-navi,ul#simple-navi-wiki{background-color:#D32F2F}a{color:#D32F2F}#box-table-a th{background:#D32F2F}#accordion br{display:none}");
}