TMA Script

"TMA Script"

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension 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.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name     TMA Script
// @version  11
// @include https://mytma.fe.hhi.de/*
// @description "TMA Script"

// @namespace https://greasyfork.org/users/149650
// ==/UserScript==
        
           
window.setInterval(() => {
    let e;
    if (document.querySelector('#session')) {
        e = document.querySelector('#session');
    } else {
        e = document.createElement('span');
        e.id = 'session';
        document.querySelector('#fixiert').appendChild(e);
    }
    let session = document.cookie.replace('JSESSIONID=', '');
    if (e.innerHTML != session) {
        e.innerHTML = session;
    }

},  100);