Skip to content

Instantly share code, notes, and snippets.

View mrcgrtz's full-sized avatar
:octocat:
I may be slow to respond.

Marc Görtz mrcgrtz

:octocat:
I may be slow to respond.
View GitHub Profile
@mrcgrtz
mrcgrtz / html-inspector.js
Last active August 29, 2015 14:05 — forked from hirayama-evolni/min.js
HTML Inspector as a bookmarklet.
(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);