Skip to content

Instantly share code, notes, and snippets.

@JohnnyQQQQ
Last active August 17, 2016 12:14
Show Gist options
  • Save JohnnyQQQQ/e118e680345231b7139bfaa9e1d83408 to your computer and use it in GitHub Desktop.
Save JohnnyQQQQ/e118e680345231b7139bfaa9e1d83408 to your computer and use it in GitHub Desktop.
Remove material-design css from monitor view
var cssUrl = 'https://jenkins-contrib-themes.github.io/jenkins-material-theme/dist/material-light-blue.css';
var url = 'http://192.168.1.11:8080/view/Monitor/';
if (window.location.href === url) {
var links = document.getElementsByTagName("link");
for (var i = 0; i < links.length; i++) {
var link = links[i];
if (link.href === cssUrl) {
link.href = '';
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment