Add styling to head

const addStyle = () => {
const style = document.createElement('style');
document.head.append(style);
return (styleString) => style.textContent = styleString;
})();

PT1602's Notebook

Saving code examples I searched multiple times.


By pt1602, 2021-11-25