-
-
Save mrcgrtz/b3910733afcfe00eb028 to your computer and use it in GitHub Desktop.
HTML Inspector as a bookmarklet.
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(w) { | |
if (typeof w.HTMLInspector !== "undefined") { | |
w.HTMLInspector.inspect(); | |
} else { | |
var el = document.createElement('script'); | |
el.setAttribute('src', 'https://rawgit.com/philipwalton/html-inspector/master/html-inspector.js'); | |
el.addEventListener('load', function() { | |
w.HTMLInspector.inspect(); | |
}); | |
document.head.appendChild(el); | |
} | |
})(window) |
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(e){if(typeof e.HTMLInspector!=="undefined"){e.HTMLInspector.inspect()}else{var t=document.createElement("script");t.setAttribute("src","https://rawgit.com/philipwalton/html-inspector/master/html-inspector.js");t.addEventListener("load",function(){e.HTMLInspector.inspect()});document.head.appendChild(t)}})(window) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment