Saucsse / RespawnBack Design - 2015

// ==UserScript==
// @name         RespawnBack Design - 2015
// @namespace    
// @version      4.0
// @description  update
// @author       Craftbukkit
// @match        http://www.jeuxvideo.com/forums*
// @grant        none
// @run-at document-start
// ==/UserScript==
(function() {
    'use strict';
    var h ='';
    h += '<div class="header-top"><div class="header-container"><div class="global-web"><span class="nav-open"><span class="nav-open-text">Menu</span>&nbsp;<span class="nav-open-hamburger"></span></span><span class="logo"><span class="JvCare 1F logo-link"><span>jeuxvideo.com</span></span></span></div><div class="global-search"><form action="http://www.jeuxvideo.com/recherche.php" class="search" ><button><i class="icon-search"></i></button><input type="search" placeholder="Rechercher un jeu, une news" id="search" name="q" /></form></div><div class="search-keyword"><span class="search-keyword-inner"> Ex :';
	h += '                                        <a href="http://www.jeuxvideo.com/evenement/e3/">E3 2016</a>,                                        <a href="http://www.jeuxvideo.com/jeux/playstation-4-ps4/00050900-uncharted-4-a-thief-s-end.htm">Uncharted 4 : A Thief&#039;s End</a>,                                        <a href="http://www.jeuxvideo.com/jeux/jeu-80805/">Tom Clancy&#039;s The Division</a>,                                        <a href="http://www.jeuxvideo.com/jeux/jeu-454829/">Clash Royale</a></span></div><script type="text/javascript">';
	h += '    WadsUtil.setAdStyle(wads.createAdPosition(\'onglet\'), \'onglet\', {';
	h += '        zIndex: 0,';
	h += '        height: \'26px\',';
	h += '        verticalAlign: \'middle\',';
	h += '        lineHeight: \'30px\',';
	h += '        maxWidth: \'150px\',';
	h += '        paddingLeft: \'10px\',';
	h += '        overflow: \'hidden\',';
	h += '        display: \'table-cell\',';
	h += '        right: 0,';
	h += '        top: \'10px\'';
	h += '    });';
	h += '</script></div></div><div class="header-bottom"><div class="header-sticky"><div class="header-container"><div class="right-nav"><span class="JvCare 1FC143424543C142454319C045C012C2434AC142451E494AC4 nav-link-search"><i class="icon-search"></i></span><!--';
	h += '    --><div class="JvCare 1FC2C24F1FC243CBCB46494CC219C045C0 nav-link-account"><div class="account"><div class="account-cell"><span class="account-img"><span class="account-avatar-box" style="background-image:url(\'[+icon+]\')"></span></span></div><div class="account-cell"><span class="account-pseudo">[+pseudo+]</span>[+mp+][+notif+]</div></div></div></div><!--';
	h += '                --><nav class="main-nav" id="main-nav"><div class="nav-container nav-platform"><ul class="lvl1"><li class="item"><a href="http://www.jeuxvideo.com/pc.htm" class="nav-link">';
	h += '                                        PC';
	h += '                </a></li><li class="item"><a href="http://www.jeuxvideo.com/ps4-playstation-4.htm" class="nav-link">';
	h += '                                        PS4';
	h += '                </a></li><li class="item"><a href="http://www.jeuxvideo.com/xbox-one-xone-xo.htm" class="nav-link">';
	h += '                                        ONE';
	h += '                </a></li><li class="item"><a href="http://www.jeuxvideo.com/wii-u-nintendo-wii-wiiu.htm" class="nav-link">';
	h += '                                        Wii U';
	h += '                </a></li><li class="item nav-dropdown"><span class="nav-toggler"></span><ul class="lvl2"><li class="item"><a href="http://www.jeuxvideo.com/ps3-playstation-3.htm" class="nav-link">';
	h += '                                        PS3';
	h += '                </a></li><li class="item"><a href="http://www.jeuxvideo.com/x360-xbox-360.htm" class="nav-link">';
	h += '                                        XBOX 360';
	h += '                </a></li><li class="item"><a href="http://www.jeuxvideo.com/3ds-nintendo-3ds.htm" class="nav-link">';
	h += '                                        3DS';
	h += '                </a></li><li class="item"><a href="http://www.jeuxvideo.com/ps-vita-playstation-vita.htm" class="nav-link">';
	h += '                                        PS VITA';
	h += '                </a></li><li class="item"><a href="http://www.jeuxvideo.com/ds.htm" class="nav-link">';
	h += '                                        DS';
	h += '                </a></li><li class="item"><a href="http://www.jeuxvideo.com/wii-nintendo-wii.htm" class="nav-link">';
	h += '                                        Wii';
	h += '                </a></li><li class="item"><a href="http://www.jeuxvideo.com/apple-iphone-ipod-touch.htm" class="nav-link">';
	h += '                                        IOS';
	h += '                </a></li><li class="item"><a href="http://www.jeuxvideo.com/android.htm" class="nav-link">';
	h += '                                        ANDROID';
	h += '                </a></li></ul></li></ul></div><!--';
	h += '                    --><div class="nav-container nav-primary"><ul class="lvl1"><li class="item nav-dropdown"><span class="JvCare 1FCB4FC3C21E4843C21E4D43C3C51F nav-link">Jeux</span><span class="nav-toggler"></span><ul class="lvl2"><li class="item"><span class="JvCare 1FCB43C2CBC21945CB4E nav-link">';
	h += '                                        Tests';
	h += '                </span></li><li class="item"><span class="JvCare 1F4245434ACBC21945CB4E nav-link">';
	h += '                                        Astuces et Wikis';
	h += '                </span></li><li class="item"><a href="http://www.jeuxvideo.com/previews.htm" class="nav-link">';
	h += '                                        Aperçus';
	h += '                </a></li><li class="item"><span class="JvCare 1FC24FC1CB4643C21F4B4ACB43C21E4B431EC24FC1CB46431945CB4E nav-link">';
	h += '                                        Sorties';
	h += '                </span></li><li class="item"><span class="JvCare 1F4E4346484843C3C1C21F4E4F4E4349CB1F nav-link">';
	h += '                                        Hit Parade';
	h += '                </span></li><li class="item"><span class="JvCare 1F4D43C3C51F4ACBCB43494BC3C21F nav-link">';
	h += '                                        Les + attendus';
	h += '                </span></li><li class="item"><a href="http://www.jeuxvideo.com/fonds-ecran-wallpapers.htm" class="nav-link">';
	h += '                                        Wallpapers';
	h += '                </a></li><li class="item"><a href="http://www.jeuxvideo.com/demos.htm" class="nav-link">';
	h += '                                        Téléchargements';
	h += '                </a></li><li class="item"><span class="JvCare 1FCB4FC3C21E4843C21E4D43C3C51F nav-link nav-link-repeat">';
	h += '                                        Tous les Jeux';
	h += '                </span></li></ul></li><li class="item"><span class="JvCare 1F4A42CBC34A4846CB43C21945CB4E nav-link">';
	h += '                                        Actu';
	h += '                </span></li><li class="item"><a href="http://www.jeuxvideo.com/gaming-live/tv01.htm" class="nav-link">';
	h += '                                        Live';
	h += '                </a></li><li class="item nav-dropdown"><span class="JvCare 1FC4464B434FC21E4B431E4D43C3C51945CB4E nav-link">Vidéos</span><span class="nav-toggler"></span><ul class="lvl2"><li class="item"><span class="JvCare 1F4245C14F4946CAC343C21EC4464B434F1945CB4E nav-link">';
	h += '                                        Chroniques';
	h += '                </span></li><li class="item"><a href="http://www.jeuxvideo.com/gaming_live.htm" class="nav-link">';
	h += '                                        Gaming Live';
	h += '                </a></li><li class="item"><a href="http://www.jeuxvideo.com/toutes-les-videos/type-7780/" class="nav-link">';
	h += '                                        Vidéos Tests';
	h += '                </a></li><li class="item"><a href="http://www.jeuxvideo.com/bandes-annonces-videos-jeux.htm" class="nav-link">';
	h += '                                        Trailers';
	h += '                </a></li><li class="item"><a href="http://www.jeuxvideo.com/le-direct.htm" class="nav-link">';
	h += '                                        Replay Web TV';
	h += '                </a></li><li class="item item-separator"></li><li class="item"><span class="JvCare 1FC4464B434FC21F2B262C2222241F4CC1464E1E4B4ACC491E494FCBC1431E4AC446C21E43491E211E4E4649C3CB43C21945CB4E nav-link"><img class="nav-img" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" data-srcset="//image.jeuxvideo.com/medias-md/146522/1465216456-4336-card.jpg">                    Dernier vidéo test';
	h += '                </span></li><li class="item"><span class="JvCare 1FC4464B434FC21F4245C14F4946CAC343C21F2B2623222B2B1FC2C04F464843C1C21E4E4AC5464E431E494FC3C21EC14A424F49CB431E4CCB4A1E211945CB4E nav-link"><img class="nav-img" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" data-srcset="//image.jeuxvideo.com/medias-md/146477/1464770344-4227-card.jpg">                    Dernière chronique';
	h += '                </span></li><li class="item"><span class="JvCare 1FC4464B434FC21F4C4A4E46494C1E4846C4431F2B262420242A1F4B434A4B1E46C2484A494B1E4B4344464946CB46C4431E434B46CB464F491EC0C14F4E43494A4B431EC24A494C484A49CB431E4AC31EC24F484346481945CB4E nav-link"><img class="nav-img" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" data-srcset="//image.jeuxvideo.com/medias-md/146488/1464878342-5203-card.jpg">                    Dernier Gaming Live';
	h += '                </span></li><li class="item"><span class="JvCare 1FCB4FC3CB43C21E4843C21EC4464B434FC21F nav-link nav-link-repeat">';
	h += '                                        Toutes les vidéos';
	h += '                </span></li></ul></li><li class="item nav-dropdown"><a href="http://www.jeuxvideo.com/forums.htm" class="nav-link">Forums</a><span class="nav-toggler"></span><ul class="lvl2"><li class="item"><span class="JvCare 1F444FC1C34EC21F201E2A231E201E2A1E201E2A1E201E41484A41484A1E4E4F4649C21E4B431E2A231E4A49C21945CB4E nav-link">';
	h += '                                        Blabla moins de 15 ans';
	h += '                </span></li><li class="item"><span class="JvCare 1F444FC1C34EC21F201E23201E201E2A1E201E2A1E201E41484A41484A1E2A231E2A251E4A49C21945CB4E nav-link">';
	h += '                                        Blabla 15-18 ans';
	h += '                </span></li><li class="item"><span class="JvCare 1F444FC1C34EC21F201E232A1E201E2A1E201E2A1E201E41484A41484A1E2A251E21231E4A49C21945CB4E nav-link">';
	h += '                                        Blabla 18-25 ans';
	h += '                </span></li><li class="item"><span class="JvCare 1F444FC1C34EC21F201E22241E201E2A1E201E2A1E201E4CC343C1C1431E4B43C21E424F49C24F4843C21945CB4E nav-link">';
	h += '                                        Guerre des Consoles';
	h += '                </span></li><li class="item"><span class="JvCare 1F444FC1C34EC21F201E2A20202020212A1E201E2A1E201E2A1E201E424F4E4EC3494AC3CB431945CB4E nav-link">';
	h += '                                        Communauté';
	h += '                </span></li><li class="item item-separator"></li><li class="item"><a href="http://www.jeuxvideo.com/forums/0-19163-0-1-0-1-0-league-of-legends.htm" class="nav-link">';
	h += '                                        League of Legends';
	h += '                </a></li><li class="item"><a href="http://www.jeuxvideo.com/forums/0-3004984-0-1-0-1-0-football-manager-2016.htm" class="nav-link">';
	h += '                                        Football Manager 2016';
	h += '                </a></li><li class="item"><a href="http://www.jeuxvideo.com/forums/0-33972-0-1-0-1-0-overwatch.htm" class="nav-link">';
	h += '                                        Overwatch';
	h += '                </a></li><li class="item"><span class="JvCare 1F444FC1C34EC21945CB4E nav-link nav-link-repeat">';
	h += '                                        Tous les Forums';
	h += '                </span></li></ul></li><li class="item"><a href="http://www.wearefans.com/?utm_source=jvc" class="nav-link" target="_blank">';
	h += '                                        Store';
	h += '                </a></li></ul></div></nav></div></div></div>';
    document.getElementsByTagName("head")[0].innerHTML += '<style type="text/css">#header-search{display:none;}</style><link href="http://static.jvc.gg/1.28.0/css/skin-forum.css" rel="stylesheet" /><link href="http://static.jvc.gg/1.28.0/css/skin-common.css" rel="stylesheet" />';
    (function ifLoad()
     {
        if(document.body)
        {
            var tmpPseudo = document.getElementsByTagName("header")[0].innerHTML.split('account-pseudo">')[1].split('<')[0];
            var tmpIcon = "http://image.jeuxvideo.com"+document.getElementsByTagName("header")[0].innerHTML.split("background-image:url('//image.jeuxvideo.com")[1].split("'")[0];
            var tmpMp = "<a href='http://www.jeuxvideo.com/messages-prives/boite-reception.php'>"+document.getElementsByTagName("header")[0].innerHTML.split('nav-account-mp dropdown">')[1].split('<div')[0]+"</a>";
			var tmpNotif = document.getElementsByTagName("header")[0].innerHTML.split('-account-notif dropdown">')[1].split('<div')[0];
			h = h.split("[+icon+]").join(tmpIcon);
            h = h.split("[+pseudo+]").join(tmpPseudo);
			h = h.split("[+mp+]").join("&nbsp;"+tmpMp);
			h = h.split("[+notif+]").join(tmpNotif);
            document.getElementsByTagName("header")[0].innerHTML = h;
            var link = document.getElementsByTagName("link").length;
            for(var i = 0;i<link;i++) {
                if(document.getElementsByTagName("link")[i].href.indexOf("29.5") != "-1" || document.getElementsByTagName("link")[i].href.indexOf("29.6") != "-1" || document.getElementsByTagName("link")[i].href.indexOf("29.7") != "-1") {
                    document.getElementsByTagName("link")[i].href = "";
                }
            }
        }
        else
        {
            setTimeout(ifLoad, 10);
        }
    }
    )();
})();