Remove EEECS GitLab system broadcast banners

Removes the system broadcast messages from the new EEECS GitLab instance, since they're not needed after login.

// ==UserScript==
// @name        Remove EEECS GitLab system broadcast banners
// @description Removes the system broadcast messages from the new EEECS GitLab instance, since they're not needed after login.
// @include     https://gitlab2.eeecs.qub.ac.uk/*
// @version     1.0.0
// @namespace https://greasyfork.org/users/398562
// ==/UserScript==

let removeFunction = (list) => {
    for (let i = list.length; --i>=0;) {
        list[i].parentNode.removeChild(list[i]);
    }
};

let p = document.getElementsByClassName('header-message');
removeFunction(p);

let q = document.getElementsByClassName('footer-message');
removeFunction(q);

document.documentElement.classList = [];