function $(selector) { return document.querySelector(selector); } code example
Example: js queryselector names
// This selects the first element with that name
document.querySelector('[name="your-selector-name-here"]');
// This selects the first element with that name
document.querySelector('[name="your-selector-name-here"]');