Skip to content

Instantly share code, notes, and snippets.

@glektarssza
Last active July 17, 2025 15:39
Show Gist options
  • Select an option

  • Save glektarssza/e2a4af934377782e482f624595a3ed13 to your computer and use it in GitHub Desktop.

Select an option

Save glektarssza/e2a4af934377782e482f624595a3ed13 to your computer and use it in GitHub Desktop.
GLFW Style Updater Tampermonkey Script
// ==UserScript==
// @name GLFW Documentation Style Updater
// @namespace http://glektarssza.com/
// @version 0.1.1
// @description Update the styling on `https://glfw.org` to make it less retina-destroying.
// @license MIT
// @author G'lek Tarssza
// @homepage https://glektarssza.com
// @website https://glektarssza.com
// @source https://gist.github.com/glektarssza/e2a4af934377782e482f624595a3ed13/raw
// @match https://www.glfw.org/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=glfw.org
// @grant GM_addStyle
// @updateURL https://gist.github.com/glektarssza/e2a4af934377782e482f624595a3ed13/raw
// @downloadURL https://gist.github.com/glektarssza/e2a4af934377782e482f624595a3ed13/raw
// @supportURL https://gist.github.com/glektarssza/e2a4af934377782e482f624595a3ed13
// ==/UserScript==
(function () {
"use strict";
GM_addStyle(`
html, body {
background-color: #3c3c3c;
color: #ffffff;
}
#glfwhome {
color: #ffffff;
}
.glfwnavbar a,.glfwnavbar a:visited {
color: #ffffff;
}
#titlearea, .footer {
background-color: #3c3c3c;
color: #ffffff;
}
div.contents,div.header {
background: #3c3c3c none;
}
section, tr:nth-child(even) {
background-color: #3c3c3c;
}
h1,h2,h3,h4,h5,h6,strong,em {
color: #f60;
}
header a,footer a {
color: #ffffff;
}
h2.groupheader {
color: #ffffff;
}
#milestone-container, div.toc {
background: #303030;
box-shadow: unset;
color: #ffffff;
text-shadow: unset;
}
.memItemLeft {
color: #ffffff;
background: #3c3c3c;
}
.memItemRight {
color: #ffffff;
background: #3c3c3c;
}
.mdescLeft {
color: #ffffff;
background: #3c3c3c;
}
.mdescRight {
color: #ffffff;
background: #3c3c3c;
}
.memSeparator {
background: #3c3c3c;
}
.memproto {
color: #ffffff;
background: #3c3c3c;
box-shadow: unset;
border: 2px solid #202020;
}
.directory tr.even {
background: #3c3c3c;
}
.directory tr.odd {
background: #666666;
}
.markdownTableRowEven {
background: #666666;
}
.markdownTableRowOdd {
background: #666666;
}
div.toc {
border: 2px solid #202020;
}
div.toc > h3 {
color: #ffffff;
}
div.fragment {
background-color: #474747;
}
.line {
color: #ededed;
}
code {
background-color: #474747;
}
span.keywordtype {
color: #adadad;
}
.highlight,.highlight code {
background-color: #474747;
}
.language-c > .cpf {
color: #ededed;
}
.language-c > .p {
color: #ededed;
}
.language-c > .n {
color: #ededed;
}
.language-c > .kt {
color: #adadad;
}
.language-c > .k {
color: #adadad;
}
.language-c > .nb {
color: #adadad;
}
.language-c > .mi {
color: #c7007eff;
}
.language-c > .o {
color: #c7007eff;
}
.language-c > .s {
color: #4100baff;
}
.memberdecls td, .fieldtable tr {
-webkit-transition-property: unset;
-webkit-transition-duration: unset;
-moz-transition-property: unset;
-moz-transition-duration: unset;
-ms-transition-property: unset;
-ms-transition-duration: unset;
-o-transition-property: unset;
-o-transition-duration: unset;
transition-property: unset;
transition-duration: unset;
}
`);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment