Gitlab open with Rider

12/30/2025, 2:03:43 PM

スクリプトをインストールするには、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 open with Rider
// @namespace   Violentmonkey Scripts
// @match       https://gitlab.com/tikaiz/dotnet-demo/-/tree/master*
// @grant       none
// @version     1.0
// @author      Tikaiz
// @description 12/30/2025, 2:03:43 PM
// @license MIT
// ==/UserScript==

const Text = 'Jetbrains Rider';

// Not sure if this is the best way of navigating to the correct DOM Location, but it works
var openWithList = document.getElementById('gl-disclosure-dropdown-group-62').nextSibling.nextSibling;

var openWithRiderList = openWithList.lastChild.cloneNode(true);
var openWithRiderText = openWithRiderList.firstChild;
openWithRiderText.innerText = Text;

var RiderBtnGroup = openWithRiderList.lastChild;
var SshBtn = RiderBtnGroup.firstChild;
var HttpsBtn = RiderBtnGroup.lastChild;

SshBtn.href = SshBtn.href.replace('idea','rider');
HttpsBtn.href = HttpsBtn.href.replace('idea','rider');

openWithList.appendChild(openWithRiderList);