Skip to content

Instantly share code, notes, and snippets.

@Jaykul
Created May 17, 2016 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jaykul/5612053b7c2701e4ba341b2fad4d708a to your computer and use it in GitHub Desktop.
Save Jaykul/5612053b7c2701e4ba341b2fad4d708a to your computer and use it in GitHub Desktop.
Fix DotNet Core Docs
// ==UserScript==
// @name Wide DotNet Core Docs
// @namespace http://HuddledMasses.org
// @description Fix the sidebar on .net core reference so you can read everything.
// @include */dotnet.github.io/api/*
// @version 1.1
// @grant none
// ==/UserScript==
var styleSheet = "" +
".container {" +
"width:auto !important;" +
"min-width:980px;" +
"}" +
"#sidetoc .sidetoc, #sidetoc .sidefilter {" +
"width:20% !important;" +
"min-width:260px;" +
"}" +
".article.grid-right {" +
"margin-left:20% !important;" +
"}" +
"";
(function () {
var s = document.createElement('style');
s.type = "text/css";
s.innerHTML = styleSheet;
(document.head || document.documentElement).appendChild(s);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment