Linkyu / Make Pillowfort more pillowy

// ==UserScript==
// @name     Make Pillowfort more pillowy
// @version  1
// @grant    none
// @match		 https://www.pillowfort.social/
// @license MIT
// ==/UserScript==

// Standard function for modifying CSS on the fly; slightly overkill here, but makes it open for upgrades, and makes the rest cleaner
function addGlobalStyle(css) {
    var head, style;
    head = document.getElementsByTagName('head')[0];
    if (!head) { return; }
    style = document.createElement('style');
    style.type = 'text/css';
    style.innerHTML = css;
    head.appendChild(style);
}

// Style overrides
addGlobalStyle('.post { border-radius: 25px !important; }');
addGlobalStyle('.header { border-radius: 25px !important; }');
addGlobalStyle('.flag-button { border-radius: 25px !important; }');
addGlobalStyle('.avatar img { border-radius: 25px !important; }');
addGlobalStyle('.timestamp { border-radius: 25px !important; }');