Skip to content

Instantly share code, notes, and snippets.

@sylvaincombes
Created June 18, 2015 15:53
Show Gist options
  • Save sylvaincombes/344b3102d8308429a274 to your computer and use it in GitHub Desktop.
Save sylvaincombes/344b3102d8308429a274 to your computer and use it in GitHub Desktop.
Visual Debug of titles in a html page (copy / paste code in the js console on a site with jquery)
$(':header').each(function (index) {
$(this).css('border', '2px solid red')
.css('background', '#393939')
.css('color', 'white')
.css('padding', '10px')
.append(' [' + $(this).get(0).tagName + ']');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment