VIS

make visma look good!

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला 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         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);


    });


})();