Skip to content

Instantly share code, notes, and snippets.

@Dalgona
Created July 5, 2016 14:39
Show Gist options
  • Save Dalgona/d01a51db92e876e8aa96b09458563ce1 to your computer and use it in GitHub Desktop.
Save Dalgona/d01a51db92e876e8aa96b09458563ce1 to your computer and use it in GitHub Desktop.
(function(w,d,undefined)
{
"use strict";
w.$ = d.getElementById;
w.$C = d.getElementsByClassName;
w.$T = d.getElementsByTagName;
HTMLElement.prototype.$C = HTMLElement.prototype.getElementsByClassName;
HTMLElement.prototype.$T = HTMLElement.prototype.getElementsByTagName;
})(window, document);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment