Skip to content

Instantly share code, notes, and snippets.

@trietsch
Last active September 26, 2024 10:01
Show Gist options
  • Select an option

  • Save trietsch/b56f65c6addc2723aabfeffd3ad324de to your computer and use it in GitHub Desktop.

Select an option

Save trietsch/b56f65c6addc2723aabfeffd3ad324de to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Auto Enable Show Dependencies
// @version 1.0.2
// @description Automatically enables show dependencies in Gitlab CI pipelines
// @author Robin Trietsch
// @match https://gitlab*/*/-/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
Copy Markdown
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