Skip to content

Instantly share code, notes, and snippets.

@NickUfer
Created July 12, 2024 21:28
Show Gist options
  • Save NickUfer/2111af4bc742a8f5258df0519395e48c to your computer and use it in GitHub Desktop.
Save NickUfer/2111af4bc742a8f5258df0519395e48c to your computer and use it in GitHub Desktop.
SystemDesignDaily Fixed Content Width
// ==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