您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
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 = [];