Last active
September 28, 2017 14:14
-
-
Save jfmherokiller/732c7c08e5920350d1e2a449aebb3185 to your computer and use it in GitHub Desktop.
fa material hack
This file contains hidden or 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 jq = document.createElement('script'); | |
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"; | |
document.getElementsByTagName('head')[0].appendChild(jq); | |
(function defer() { | |
if (window.jQuery) { | |
$.noConflict(); | |
RemoveCSS(); | |
} else { | |
setTimeout(function() { defer() }, 50); | |
} | |
})(); | |
function RemoveCSS() { | |
jQuery('link[rel="stylesheet"]').remove(); | |
document.querySelector("head").innerHTML += ("<link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">"+ | |
"<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/material-design-lite/1.3.0/material.grey-lime.min.css\">"+ | |
"<script defer src=\"https://code.getmdl.io/1.3.0/material.min.js\"></script>"); | |
document.querySelector("body").innerHTML = "<div class=\"mdl-layout mdl-js-layout\">" + document.querySelector("body").innerHTML + "</div>"; | |
jQuery(".footer").addClass("mdl-mega-footer") | |
jQuery(".block-menu-top").addClass("mdl-layout__header"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment