Created
July 12, 2024 21:28
-
-
Save NickUfer/2111af4bc742a8f5258df0519395e48c to your computer and use it in GitHub Desktop.
SystemDesignDaily Fixed Content Width
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name SystemDesignDaily Fixed Content Width | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-07-12 | |
// @description try to take over the world! | |
// @author You | |
// @match https://systemdesigndaily.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=systemdesigndaily.com | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
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); | |
} | |
addGlobalStyle('@media (min-width: 1500px) { .markdown-content > * { max-width: 60%; box-sizing: border-box; } }'); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment