Skip to content

Instantly share code, notes, and snippets.

@initdc
Created January 17, 2026 06:50
Show Gist options
  • Select an option

  • Save initdc/bfc338d800862e169139090f522d44ee to your computer and use it in GitHub Desktop.

Select an option

Save initdc/bfc338d800862e169139090f522d44ee to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name My Font Style
// @namespace http://tampermonkey.net/
// @version 2026-01-17
// @description try to take over the world!
// @author You
// @match https://docs.swift.org/swift-book/documentation/the-swift-programming-language/*
// @match https://doc.swiftgg.team/documentation/the-swift-programming-language/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=swift.org
// @grant GM_addStyle
// ==/UserScript==
GM_addStyle(`
body {
font-family:
-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu,
Cantarell, 'Helvetica Neue', sans-serif;
line-height: 1.6;
font-size: 17px;
font-weight: 300;
background-color: var(--color-fill);
color: var(--color-text);
pre,
code {
font-size: 16px;
font-family:
'SF Mono', ui-monospace, Menlo, Consolas, Monaco, 'Courier New',
monospace, serif;
}
}
[data-v-3a32ffd0] .code-listing pre>code {
font-size: .8823529412rem;
line-height: 1.6666666667;
font-weight: 400;
font-family:
'SF Mono', ui-monospace, Menlo, Consolas, Monaco, 'Courier New',
monospace, serif;
}
.leaf-link[data-v-5148de22] {
color: var(--color-figure-gray);
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
max-width: 100%;
display: inline;
vertical-align: middle;
font-size: 1rem;
line-height: 1.4705882353;
font-weight: 300;
font-family:
-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu,
Cantarell, 'Helvetica Neue', sans-serif;
}
`);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment