你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/439017-jquery-and-common-function-shortcuts-everywhere,源站連結 點此以跳轉

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.



點此查看下載連結位址https://update.greasyfork.org.cn/scripts/439017/jQuery%20and%20common%20function%20shortcuts%20everywhere.user.js

安装此脚本?
作者
Alistair1231
日安装量
0
总安装量
44
评分
0 0 0
版本
0.5.1
创建于
2022-01-23
更新于
2023-06-04
大小
2.3 KB
许可证
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)
------------------------------------------