Last updated: 9 May 2017
This is an offshoot of ChatJax, which enables MathJax along with mhchem on chat.
In order to enable MathJax in chat, please follow the following instructions (courtesy of mhchem's answer below):
- Copy this code into your clipboard
javascript:(function(){if(window.MathJax===undefined){var script=document.createElement("script");script.type="text/javascript";script.src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS_HTML";var config='MathJax.Ajax.config.path["mhchem"]="https://cdnjs.cloudflare.com/ajax/libs/mathjax-mhchem/3.2.0";MathJax.Hub.Config({extensions: ["tex2jax.js"],tex2jax:{inlineMath:[["$","$"],["\\\\\\\\\\\\(","\\\\\\\\\\\\)"]],displayMath:[["$$","$$"],["\\\\[","\\\\]"]],processEscapes:true},TeX:{extensions:["[mhchem]/mhchem.js","cancel.js"]},jax:["input/TeX","output/HTML-CSS"]});MathJax.Hub.Startup.onload();';if(window.opera){script.innerHTML=config}else{script.text=config}document.getElementsByTagName("head")[0].appendChild(script);window.setInterval(function(){MathJax.Hub.Queue(["Typeset",MathJax.Hub]);},1000);}else{MathJax.Hub.Queue(["Typeset",MathJax.Hub]);}})();
- Create a bookmark with this (Chrome: Menu > Bookmarks > Bookmark manager > right click > Add page > ...)
- Whenever you are on a chat page, click the bookmark.