onche.org

try to take over the world!

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

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

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

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

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name         onche.org
// @namespace    https://onche.org/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://onche.org/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=mozilla.org
// @grant        none
// ==/UserScript==

function improve() {
    'use strict';
    const color1 = "rgb(28, 43, 58)";
    const color2 = "rgb(38, 53, 68)";
    const color3 = "rgb(48, 63, 78)";
    const color4 = "rgb(107, 145, 183)";
    const color5 = "rgb(83 174 255)";

    //Forum
    Array.from(document.querySelectorAll(".bloc")).map(x => x.style= "background-color: "+color2)
    Array.from(document.querySelectorAll(".topic:nth-child(odd)")).map(x => x.style= "background-color: "+color1)
    Array.from(document.querySelectorAll(".topic-subject link")).map(x => x.style.color=color5)


    Array.from(document.querySelectorAll(".input")).map(x => x.style.border="solid 1px "+color3)
    Array.from(document.querySelectorAll(".textarea")).map(x => x.style.border="solid 1px "+color3)
    Array.from(document.querySelectorAll(".bloc")).map(x => x.style.border="solid 1px "+color3)
    Array.from(document.querySelectorAll("#post")).map(x => x.style.border="solid 1px "+color3)

    // Message
    Array.from(document.querySelectorAll(".message")).map(x => x.style= "background-color: "+color2)
    Array.from(document.querySelectorAll(".message")).map(x => x.style.border="solid 1px "+color3)
    Array.from(document.querySelectorAll(".message")).map(x => x.style.margin="0 0 15px")
    Array.from(document.querySelectorAll(".message-date")).map(x => x.style="font-size:.7rem")
    Array.from(document.querySelectorAll(".message-date")).map(x => x.style.border="solid 1px "+color3)
    Array.from(document.querySelectorAll(".message-date")).map(x => x.style.color=color4)
    console.log("Thème bleu amélioré")
}

window.onload = (() => {
    console.log(document.querySelector("body").className.includes("blue"))
    if (document.querySelector("body").className.includes("blue"))
        improve();
    })()