Dark JVC Fix

Fix Dark JVC

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

You will need to install an extension such as Tampermonkey to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name         Dark JVC Fix
// @namespace    http://tampermonkey.net/
// @version      0.7
// @description  Fix Dark JVC
// @author       Dwnlt
// @include      https://www.jeuxvideo.com/*
// @include      https://www.jeuxvideo.com/recherche/forums/0-*
// @grant        none
// @run-at       document-body
// ==/UserScript==

(function() {
    'use strict';
    let fixCss =
    `

body{

}

.layout--withBackground{
    background-image:none !important;
    background-color:#202020 !important;
}

.layout__content{
    background-color:#1C1C1C !important;
}

.layout__breadcrumb{
  background-color:#1C1C1C !important;
}

.topic-list .dfp__atf ~ li:nth-of-type(even) {
    background: #2E2E2E !important;
}
.topic-list .dfp__atf ~ li:nth-of-type(odd) {
    background: #2A2A2A !important;
}

.topic-list li.topic-delete-gta{
    background: #2E2E2E !important;
}

.topic-list .dfp__atf ~ li:nth-of-type(even):hover, .topic-list .dfp__atf ~ li:nth-of-type(odd):hover {
    background: #202020 !important;
}

.jv-top-nav-link{
background: #000 !important;
border-bottom: .0625rem solid #505050 !important;

}

.jv-top-nav-lvl1 > .jv-top-nav-item .nav-link{
color: #bdbdbd !important;
}

.layout--withBackground .layout__breadcrumb, .layout--withBackground .layout__content, .layout--withBackground .layout__contentAfter, .layout--withBackground .layout__contentAside, .layout--withBackground .layout__contentBefore, .layout--withBackground .layout__contentHeader, .layout--withBackground .layout__contentMain, .layout--withBackground .layout__contentMainMedia, .layout--withBackground .layout__contentMainMedia--anchor, .layout--withBackground .layout__contentMainMediaHeader, .layout--withBackground .layout__contentTop, .layout--withBackground .layout__contextBottom {
background-color: #1c1c1c !important;
}


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