Skip to content

Instantly share code, notes, and snippets.

@trietsch
Last active June 9, 2023 13:14
Show Gist options
  • Save trietsch/b56f65c6addc2723aabfeffd3ad324de to your computer and use it in GitHub Desktop.
Save trietsch/b56f65c6addc2723aabfeffd3ad324de to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Auto Enable Show Dependencies
// @version 1.0.1
// @description Automatically enables show dependencies in Gitlab CI pipelines
// @author Robin Trietsch
// @match https://gitlab.com/*/-/pipelines/*
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
// @grant none
// @updateURL https://gist.github.com/trietsch/9c8701445a3ab5b2033ac2f615b2d2c1/raw/3b69af9ab266e0af438459337409387ec567d6db/auto-redirect.user.js
// @downloadURL https://gist.github.com/trietsch/9c8701445a3ab5b2033ac2f615b2d2c1/raw/3b69af9ab266e0af438459337409387ec567d6db/auto-redirect.user.js
// ==/UserScript==
(function() {
'use strict';
waitForKeyElements("div span:contains('Show dependencies') ~ button", n => { n.click() }, true);
})();
@trietsch
Copy link
Author

Install Tampermonkey, after install, click the Raw button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment