public
Created

Useful functions for web debugging (via @leaverou)

  • Download Gist
debug.js
JavaScript
1 2 3
function $(id) { return document.getElementById(id); }
function $t(tag, con) { return (con || document).getElementsByTagName(tag); }
function $$(expr, con) { return (con || document).querySelectorAll(expr); }

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.