Last active
August 17, 2016 12:14
-
-
Save JohnnyQQQQ/e118e680345231b7139bfaa9e1d83408 to your computer and use it in GitHub Desktop.
Remove material-design css from monitor view
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
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