Created
January 4, 2014 23:48
-
-
Save cgranade/8262384 to your computer and use it in GitHub Desktop.
Adds MathJax support to GitHub Gists. Useful for working with Markdown documents.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name MathJax for Gists | |
// @include *://gist.github.com/* | |
// @version 0.1 | |
// @description Adds MathJax support to Gists. | |
// ==/UserScript== | |
if ((window.unsafeWindow == null ? window : unsafeWindow).MathJax == null) { | |
var script = document.createElement("script"); | |
script.type = "text/javascript"; | |
script.src = "https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"; | |
document.getElementsByTagName("head")[0].appendChild(script); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
seem to be a userscript. you need grease monkey or equivalent plugin to run it :)