Here is a GreaseMonkey script that should do what you want: Run MathJax on Github . It should work in all major browsers (although some of them need plugins to run GreaseMonkey scripts, see the installation instructions for this question for details).
This script only loads MathJax into pages containing TeX or MathML markup (this is a very simple test for this, which can certainly be made more complex). Note that the default delimiters are \(...\) for embedded math and \[...\] or $$...$$ for math displayed. In particular, single dollars cannot be used as mathematical separators (since they occur too often in a regular non-mathematical text). If you want to enable one-dollar separators, you will need to edit the script to add the MathJax script configuration before loading MathJax.js itself.
The script is installed on the trigger at http://github.com/* and https://github.com/* . Not all GreaseMonkey implementations provide pattern matching in the main part of the URL, but if you do, you can make it more complex so that it also gets github subdomains.
Hope that does what you need.
Change The script now includes $...$ for inline math, as asser requested.
Davide Cervone Jul 01 2018-12-12T00: 00Z
source share