Created
March 16, 2018 15:20
-
-
Save ulfsauer0815/c1efa017a66a4c1ebfa2878ee2b348f5 to your computer and use it in GitHub Desktop.
Cleaned up Pipeline Stage View for Wall Display
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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