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
function customJenkins() { | |
var url = window.location.href.replace(window.location.protocol, ''), | |
urls = ['//127.0.0.1:8080/','//jenkins:8080/','//jenkins:8080/view/all/builds','//127.0.0.1:8080/view/all/builds']; | |
if (urls.includes(url)) { | |
// hide most of the left nav links on the pages in the urls array | |
var dontHide = ['Manage Jenkins','Build History','New Item']; | |
try { | |
var tasks = document.getElementsByClassName('task'); | |
for (var i = 0; i < tasks.length; i++) { | |
if (!dontHide.includes(tasks[i].innerText)) { |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<style> | |
body { | |
background-color:#daaaaa; | |
} | |
.bright1 {background-color:green;} | |
.bright2 {background-color:blue;} | |
.bright3 {background-color:orange;} |