Skip to content

Instantly share code, notes, and snippets.

Avatar
🍒

Björn Bebensee qmdnls

🍒
View GitHub Profile
View gist:9c135b654b6521de4c60c18ec5dda841
### 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:
@qmdnls
qmdnls / debug.md
Created Jun 9, 2019
Give each element on the page a randomly coloured outline
View debug.md

"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)})