Luogu Helper

Night Mod ForLuogu

2018-10-08 या दिनांकाला. सर्वात नवीन आवृत्ती पाहा.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला 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         Luogu Helper
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Night Mod ForLuogu
// @author       FangHao
// @match        https://www.luogu.org/*
// @grant        none
// ==/UserScript==



(function() {
    'use strict';
    var x = document.getElementsByTagName("h1");
    for(var i = 0; i < x.length; i++){
        x[i].style = "color:#ececec";
    }
    x = document.getElementsByTagName("h2");
    for(i = 0; i < x.length; i++){
        x[i].style = "color:#ececec";
    }
    x = document.getElementsByTagName("h3");
    for(i = 0; i < x.length; i++){
        x[i].style = "color:#ececec";
    }
    x = document.getElementsByTagName("h4");
    for(i = 0; i < x.length; i++){
        x[i].style = "color:#ececec";
    }
    x = document.getElementsByTagName("h5");
    for(i = 0; i < x.length; i++){
        x[i].style = "color:#ececec";
    }
    x = document.getElementsByTagName("p");
    for(i = 0; i < x.length; i++){
        x[i].style = "color:#ececec";
    }
    x = document.getElementsByTagName("li");
    for(i = 0; i < x.length; i++){
        x[i].style = "color:#ececec";
    }
    x = document.getElementsByTagName("strong");
    for(i = 0; i < x.length; i++){
        x[i].style = "color:#ececec";
    }
    x = document.getElementsByTagName("pre");
    for(i = 0; i < x.length; i++){
        x[i].style = "background-color: #777777; color: #e8e8e8;";
    }
    var root=document.getElementsByClassName("lg-article am-g")[0];
           root.style.cssText="background-color: #444444;";
    root=document.getElementsByClassName("am-panel am-panel-default lg-summary")[0];
           root.style.cssText="background-color: #444444;";
    root=document.getElementsByClassName("am-panel am-panel-default lg-summary am-hide-sm")[0];
           root.style.cssText="background-color: #444444;";
    root=document.getElementsByClassName("lg-content")[0];
           root.style.cssText="background-color: #353535;";
    root=document.getElementsByClassName("lg-toolbar")[0];
           root.style.cssText="background-color: #353535; border: 1px solid #464646; ";
})();