Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Useful functions for web debugging (via @leaverou)
function $(id) { return document.getElementById(id); }
function $t(tag, con) { return (con || document).getElementsByTagName(tag); }
function $$(expr, con) { return (con || document).querySelectorAll(expr); }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment