Skip to content

Instantly share code, notes, and snippets.

@jonathan-annett
jonathan-annett / qs.js
Last active October 30, 2022 06:18
when you don't want to use jquery
(function(){
const W=window,D=document;
W.qs=function(q, d) {
return (d ? d : D).querySelector(q);
};
P("tag","s", "");
P("id","","#");
P("class","es",".");

Keybase proof

I hereby claim:

  • I am jonathan-annett on github.
  • I am jonathanannett (https://keybase.io/jonathanannett) on keybase.
  • I have a public key ASCP6WfU-tGAiDYJNJMV888DLq-KCABNBJJZRbcX4bYw_Qo

To claim this, I am signing this object: