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.

目前為 2023-04-28 提交的版本,檢視 最新版本

作者
Alistair1231
評價
0 0 0
版本
0.4.6
建立日期
2022-01-23
更新日期
2023-04-28
尺寸
1.7 KB
授權條款
GPL-3.0
腳本執行於
所有網站

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)
------------------------------------------