Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ulfsauer0815/c1efa017a66a4c1ebfa2878ee2b348f5 to your computer and use it in GitHub Desktop.
Save ulfsauer0815/c1efa017a66a4c1ebfa2878ee2b348f5 to your computer and use it in GitHub Desktop.
Cleaned up Pipeline Stage View for Wall Display
// ==UserScript==
// @name Jenkins Pipeline Stage View Wall Display Cleanup
// @namespace http://github.com/UlfS
// @version 0.1
// @description Cleaned up Pipeline Stage View for Wall Display
// @author UlfS
// @match https://cdp.epages.works/job/cdp*
// @grant GM_addStyle
// @require https://code.jquery.com/jquery-3.3.1.slim.min.js
// ==/UserScript==
GM_addStyle (`
p {
margin-bottom: 0.1px;
margin-top: 0.1px;
}
.cbwf-stage-view {
padding: 0px 0 !important;
}
`);
(function() {
'use strict';
$('div[id=tasks]').remove();
$('div[id=page-head]').remove();
$('.job-index-headline').remove();
$('div[id=description] > table').remove();
$('div[id=main-panel]').contents().filter(function(){
return this.nodeType === 3;
}).remove();
$('div[id=pipeline-box] > h2').remove();
$('.job-index-headline').remove();
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment