4 ms·
> I injected jquery first to select the element using $() In Chrome and Firefox, $ and $$ are available in the console as replacements for document.querySelect
by bambax 2y ago
> I injected jquery first to select the element using $()
In Chrome and Firefox, $ and $$ are available in the console as replacements for document.querySelector and document.querySelectorAll, respectively.
This doesn't work in scripts though; only in the console. In a script you can use this:
const $ = document.querySelector.bind(document);