softkhey / olddesign

// ==UserScript==
// @author pleinsdennuis
// @name     olddesign
// @description design jvc pré-2021
// @include *://*.jeuxvideo.com/*
// @version  1
// @license MIT
// @grant    none
// ==/UserScript==


(()=>{
	const PANELS = document.getElementsByClassName('panel-jv-forum');
	const TITRES_PANEL = document.getElementsByClassName('titre-info-fofo');

	//header bleu
	document.getElementsByClassName('jv-header-top')[0].style.backgroundColor = '#004365';
	document.getElementsByClassName('jv-header-sticky')[0].style.backgroundColor = '#002f46';

	const NAV_LINK = document.getElementsByClassName('nav-link');
	const NAV_LINK2 = document.getElementsByClassName('jv-nav-lvl2');

	for (let i = 0; i < NAV_LINK.length; i++){
		NAV_LINK[i].style.color = 'white';
	}

	for (let i = 0; i < NAV_LINK2.length; i++){
		NAV_LINK2[i].style.backgroundColor = '#19709e';
	}

	document.getElementsByClassName('account-pseudo')[0].style.color = 'white'; //pseudo
	document.getElementsByClassName('jv-account-number-mp ')[0].style.color = 'white'; //mp logo
	document.getElementsByClassName('jv-account-number-notif ')[0].style.color = 'white'; //notif logo
	document.getElementsByClassName('nav-link-search')[0].style.color = 'white'; //recherche logo
	
	if (document.getElementsByClassName('titre-bloc titre-bloc-forum')[0] !=undefined){
		document.getElementsByClassName('titre-bloc titre-bloc-forum')[0].style.color = '#ff4000';
		document.getElementsByClassName('titre-bloc')[1].style.color = '#ff4000';
	}
	document.getElementsByClassName('nav-link-search')[0].style.color = 'white';
	if (document.getElementsByClassName('page-active')[0] !=undefined){
		document.getElementsByClassName('page-active')[0].style.backgroundColor = '#ff4000';
		document.getElementsByClassName('page-active')[1].style.backgroundColor = '#ff4000';
	}

	//panel à droite
	if (PANELS[0] != undefined) {
		for (let i = 0; i < PANELS.length; i++){
			PANELS[i].style.background = '#2a2a2a';
			PANELS[i].style.color = 'white';
			TITRES_PANEL[i].style.color = '#ffc926';
		}
	}
})();