Skip to content

Instantly share code, notes, and snippets.

View qmdnls's full-sized avatar
👋

Björn Bebensee qmdnls

👋
View GitHub Profile
### 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 June 9, 2019 03:30
Give each element on the page a randomly coloured outline

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