Why so? 😨
Because it's seems not standard :/ but you can easely recreate this idea:
document.querySelectorAll("[id]").forEach(el => window[el.id] = el);
It's totally standard.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.