VIS

make visma look good!

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name         VIS
// @namespace    nikee.dev
// @version      2.2
// @description  make visma look good!
// @author       nikeedev
// @match        https://*.inschool.visma.no/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=visma.no
// @grant        none
// @license      MIT
// @run-at document-body
// ==/UserScript==

(function() {
    'use strict';

    window.addEventListener('load', function() {
        let css = document.createElement("style");
        css.innerHTML = `
        .top-menu-navbar {
    background: #0659CE !important;
}

ul:first-of-type > :first-child {
    display: none !important;
}

.navbar-brand {
    border-right: 0 !important;
}

.navbar-menu-collapse {
    flex: 0 !important;
    padding-right: 35vh !important;
}

.navigation-search.search-input {
    /*padding-left: 121px !important;*/
}

.search-input-content.vs-Input.form-control {
    padding-left: 14vw !important;
    min-width: 35vw !important;
}

.user-info > .text-size1 {
    color: #a5c3ed !important;
}

#top-menu-navbar-brand {
   /** font-family: monospace; **/
   font-style: 650;
}
        `;

        document.head.appendChild(css);

        let search;

        function run() {
            search.placeholder = "[/] Søk på siden";
        }

        const waitForElement = setInterval(() => {
            search = document.body.querySelector(".search-input-content.vs-Input.form-control");
            if (search) {
                clearInterval(waitForElement); // Stop checking
                run();
            }
        }, 100);


    });


})();