// ==UserScript== // @name Unround Everything Everywhere // @namespace myfonj // @version 1.0.5 // @description Forces zero border-radius to everything. // @license CC0 - Public Domain // @grant GM_addStyle // @run-at document-start // @match *://*/* // @downloadURL none // ==/UserScript== (function() { let css = ""; css += ` /* https://greasyfork.org/en/scripts/408378/versions/new */ *:not(#\\0):not(#\\0):not(#\\0), *:not(#\\0):not(#\\0):not(#\\0)::before, *:not(#\\0):not(#\\0):not(#\\0)::after { border-radius: 0 !important; } /* Firefox bug: touching any border property reverts "fancy" modern thin 1px borders to "ugly" retro old 3px outset look. This tries to circumnvent it by setting it back to 1px at lowest possible specifity, so any (unlayered) author declaration wins over this. Using :where() here is insufficient, because this this "user style" is injected as the last author style, so it will will over prior \`*\` declarations anyway. */ @layer i_miss_true_user_origin_level_stylesheets { input, button, select { border-width: 1px; } } /* FB & Workplace */ :root#facebook svg[role] > mask[id]:first-child + g[mask]:last-child { mask: none !important; } /* circle outline, some status perhaps */ :root#facebook svg[role] > mask[id]:first-child + g[mask]:last-child circle { opacity: 0.1 !important; } `; if ((location.hostname === "twitter.com" || location.hostname.endsWith(".twitter.com"))) { css += ` [style*='clip-path: url("#circle-hw-shapeclip-clipconfig")'] { clip-path: none !important; } `; } if (typeof GM_addStyle !== "undefined") { GM_addStyle(css); } else { const styleNode = document.createElement("style"); styleNode.appendChild(document.createTextNode(css)); (document.querySelector("head") || document.documentElement).appendChild(styleNode); } })();