Gitlab navigation buttons

Add back the navigation buttons that have been hidden in the hamburger menu

2021/06/23のページです。最新版はこちら

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

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

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name                Gitlab navigation buttons
// @description         Add back the navigation buttons that have been hidden in the hamburger menu
// @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.0.0
// @require             https://cdn.staticfile.org/jquery/1.12.2/jquery.min.js
// ==/UserScript==


(function () {
    'use strict';

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