GitLab navigation buttons

Add buttons on the top bar for quick navigation

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name                GitLab navigation buttons
// @description         Add buttons on the top bar for quick navigation
// @author              eXistenZNL
// @namespace           eXistenZNL

// @grant               none
// @run-at              document-end
// @include             *://gitlab.com/*
// @include             *://gitlab.*.com/*

// @date                03/22/2021
// @modified            05/20/2021
// @version             1.1.0
// ==/UserScript==


(function () {
    'use strict';

    const nav = document.querySelector('div.top-bar-container');
    const html = `
    <div class="gl-display-none gl-sm-display-block">
      <ul class="breadcrumbs-list">
        <li><a href="/dashboard/projects">Projects</a></li>
        <li><a href="/dashboard/groups">Groups</a></li>
        <li><a href="/dashboard/milestones">Milestones</a></li>
        <li><a href="/dashboard/snippets">Snippets</a></li>
        <li><a href="/dashboard/activity">Activity</a></li>
        <li><a href="/admin">Admin</a></li>
      </ul>
    </div>`
    $(nav).append(html);
})();