Created
September 30, 2019 07:58
-
-
Save lan496/db1dcadee924e02ff14d23f727c68520 to your computer and use it in GitHub Desktop.
User script for Tampermonkey that renders TeX symbols
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 Enable MathJax | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description enable MathJax in inoreader pages | |
// @author lan496 | |
// @match https://www.inoreader.com/* | |
// @grant none | |
// ==/UserScript== | |
window.MathJax = { | |
tex: { | |
inlineMath: [['$', '$'], ['\\(', '\\)']] | |
} | |
}; | |
function renderMathJax() { | |
window.MathJax.typeset() | |
}; | |
(function () { | |
let script = document.createElement('script'); | |
script.type = "text/javascript"; | |
script.src = 'https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js'; | |
script.async = true; | |
document.head.appendChild(script); | |
setInterval(renderMathJax, 1000) | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment