"One-line debugger" to give each element on the page a randomly coloured outline
[].forEach.call(document.querySelectorAll("*"),function(a){a.style.outline="1px solid #"+(~~(Math.random()*(1<<24))).toString(16)})
"One-line debugger" to give each element on the page a randomly coloured outline
[].forEach.call(document.querySelectorAll("*"),function(a){a.style.outline="1px solid #"+(~~(Math.random()*(1<<24))).toString(16)})
### Keybase proof | |
I hereby claim: | |
* I am qmdnls on github. | |
* I am bjrn (https://keybase.io/bjrn) on keybase. | |
* I have a public key ASA5M09p_fj4Kg778aMv5GZcFo0LgxeObxEQIhVT-Psvago | |
To claim this, I am signing this object: |