▲ 7 points
My favorite one-line jquery alternative
const $ = (q) => document.querySelectorAll(q);
To be a blazing fast electron app, I've build www.monsterwriter.app with W3C standards only.
To be a blazing fast electron app, I've build www.monsterwriter.app with W3C standards only.
What is this demon sorcery?!
I assumed injecting a new/different jquery wouldn't break most sites, but if people are doing this then it definitely would.
function $(id) {
return document.getElementById(id);
}