Skip to content

Instantly share code, notes, and snippets.

@mort3za
Last active March 9, 2023 11:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mort3za/40a1ed9d5f5539d5c837f8960bbadc13 to your computer and use it in GitHub Desktop.
Save mort3za/40a1ed9d5f5539d5c837f8960bbadc13 to your computer and use it in GitHub Desktop.
Some Gitlab bookmarklets. Use https://www.gibney.org/bookmarklet_editor to convert code to JS and edit it.

Cancel all jobs in column test-run, except those entered in prompt box:

javascript:(function()%7Bconst%20jobs%20%3D%20prompt('Enter%20jobs%2C%20comma%20separated').split('%2C')%3B%0Aconst%20contains%20%3D%20jobs.map(i%3D%3E%60%3Acontains(%22%24%7Bi%7D%22)%60).join()%3B%0A%24(%60%5Bdata-testid%3D%22stage-column%22%5D%3Acontains(%22test-run%22)%20.ci-job-component%3Anot(%24%7Bcontains%7D)%20.cancel%60).trigger('click')%7D)()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment