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.

Versione datata 26/04/2023. Vedi la nuova versione l'ultima versione.

Autore
Alistair1231
Valutazione
0 0 0
Versione
0.4.4
Creato il
23/01/2022
Aggiornato il
26/04/2023
Dimensione
1,94 KB
Licenza
GPL-3.0
Applica a
Tutti i siti

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