Created
May 31, 2021 21:10
-
-
Save itwondersteam/50f94f476c78a4678740a1f3cf127130 to your computer and use it in GitHub Desktop.
css outline bookmarklet
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
// https://gist.github.com/addyosmani/fd3999ea7fce242756b1 | |
window.iwShowOutline = !!!window.iwShowOutline; | |
[].forEach.call(document.querySelectorAll("*"),function(a){ | |
if (window.iwShowOutline) a.style.outline="1px solid #"+(~~(Math.random()*(1<<24))).toString(16) | |
else a.style.outline='initial' | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment