A collection of JavaScript snippets, mostly used in custom UserScripts.
You can paste them into your code directly, or @require
them using the GitHub raw link.
// equivalent to `const container = document.querySelector("div.container")`
const container = $("div.container")