const getAttributes = () => {
let head = document.head || document.getElementsByTagName("head")[0]; return { head, };
const changeStyles = (targetElement) => {
style = document.createElement("style");
// set style.innerHTML to darker colors, append to head style.type = "text/css"; style.innerHTML = ` body, #hnmain { background: #272822; } a.storylink, a.morelink, span.commtext { color: #fff; } a.storylink:visited { color: #444444; } `; targetElement.appendChild(style);
(function main() { const { ...attributes } = getAttributes(); changeStyles(attributes.head); })();
const getAttributes = () => {
};const changeStyles = (targetElement) => {
style = document.createElement("style");
};(function main() { const { ...attributes } = getAttributes(); changeStyles(attributes.head); })();