Created
November 2, 2016 14:49
-
-
Save skew202/6cab5a60fa8072097bb8e5ba2635a7e8 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
//Using $$ | |
[].forEach.call($$("*"),function(a){ | |
a.style.outline="1px solid #"+(~~(Math.random()*(1<<24))).toString(16) | |
}) | |
//Using document.querySelectorAll: | |
[].forEach.call(document.querySelectorAll("*"),function(a){a.style.outline="1px solid #"+(~~(Math.random()*(1<<24))).toString(16)}) | |
//source: Addy Osmani |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment