Skip to content

Instantly share code, notes, and snippets.

@JapuDCret
Last active June 4, 2019 18:46
Show Gist options
  • Save JapuDCret/68e7d5e904b79f55b674e256306fda4e to your computer and use it in GitHub Desktop.
Save JapuDCret/68e7d5e904b79f55b674e256306fda4e to your computer and use it in GitHub Desktop.
a Greasemonkey script to make the Cheatsheet at https://cdn.materialdesignicons.com/3.6.95/ more readable
// ==UserScript==
// @name MaterialDesignIcons - Dark Theme
// @include https://cdn.materialdesignicons.com/*
// @version 1
// @grant none
// @run-at document-start
// ==/UserScript==
function GM_addStyle (cssStr) {
var D = document;
var newNode = D.createElement ('style');
newNode.textContent = cssStr;
var targ = D.getElementsByTagName ('head')[0] || D.body || D.documentElement;
targ.appendChild (newNode);
}
GM_addStyle ( `
body {
background: #22262a;
color: #fff;
}
pre,
code,
footer {
background: #1d2022;
color: #fff;
}
.icons {
column-count: 4;
}
.icons div i {
width: 96px;
height: 64px;
line-height: 64px
}
.icons div i::before {
font-size: 64px !important;
}
`)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment