Last active
January 31, 2017 16:01
-
-
Save AlexandreProenca/257b69fc92bbac1c9d1add84e2d64bbf to your computer and use it in GitHub Desktop.
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
[].forEach.call($$("*"),function(a){ | |
var color = (~~(Math.random()*(1<<24))).toString(16) | |
a.style.outline="1px solid #"+color; | |
var dom = document.createElement("div"); | |
dom.setAttribute("style", "font-size: 10px; margin:5px; background: #"+color); | |
dom.innerText = a.localName; | |
a.appendChild(dom); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment