jQuery and common function shortcuts everywhere

injects jquery if not exists and adds some common function shortcuts to the window object. See al.help() for details.

작성자
Alistair1231
일일 설치 수
0
총 설치 수
43
평점
0 0 0
버전
0.5.1
생성일
2022-01-23
갱신일
2023-06-04
크기
2.28KB
라이선스
MIT
적용 사이트
모든 사이트

Type al.help() on your console to see the shortcuts

As of 2023-04-25 this is the following. I may forget to update the description in the future. So it's good to check yourself ;)

al: jQuery and Method shortcuts everywhere
------------------------------------------
al.cl(str) - console.log(str)
al.js(obj) - JSON.stringify(obj)
al.jsp(obj) - JSON.stringify(obj, null, 2)
al.jp(str) - JSON.parse(str)
al.qs(selector) - document.querySelector(selector)
al.qsa(selector) - document.querySelectorAll(selector)
al.gid(id) - document.getElementById(id)
------------------------------------------