Raw Source
Redcrafter / Proxer-Fullscreen

// ==UserScript==
// @name         Proxer-Fullscreen
// @namespace    PrFs
// @version      1.2.2
// @description  Next version at https://openuserjs.org/scripts/Redcrafter/Proxer_ReDesign
// @author       Redcrafter
// @updateURL    https://openuserjs.org/meta/Redcrafter/Proxer_ReDesign.meta.js
// @match        *://proxer.me/*
// @require      https://greasyfork.org/scripts/12981-proxer-userscript-anker/code/Proxer-Userscript-Anker.js?version=81145
// @require      https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js
// @run-at       document-start
// @grant        GM_setValue
// @grant        GM_getValue
// ==/UserScript==

document.cookie = "style=black;";

addAnkerMember('fullscreen', 'Fullscreen', true, screen_actionControl, 'screen', 0);

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

function screenToggle(){
    if (GM_getValue("screen",0) === 0) {
        return;
    }
    $("#accordion br").remove();

    var head = document.getElementsByTagName('head')[0];
    if (!head) { return; }
    var style = document.createElement('style');
    style.type = 'text/css';
    style.innerHTML = "@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 { margin-left: 0px !important; margin-right: 0px !important; margin-top: 40px !important; margin-bottom: 0px !important; border: none; } .inner { max-width: none !important; margin-left: 10px !important; margin-right: 10px !important; margin-bottom: 0px !important; } #innerNav { max-width: none !important; } ul#simple-navi { border-radius: 0 !important; height: 32px; padding: 0; } ul#simple-navi li { margin: 0; line-height: 12px; } ul#simple-navi li a { padding: 10px 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: 0px !important; background-color: #000000; } .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; }";
    head.appendChild(style);
}