forked from christianp/mathjax-bookmarklet
/
bookmarklet.min.js
1 lines (1 loc) 路 948 Bytes
/
bookmarklet.min.js
1
!function(){function t(t){void 0===t.MathJax?function(t){var e=".MathJax .mn {background: inherit;} .MathJax .mi {color: inherit;} .MathJax .mo {background: inherit;}",a=t.createElement("style");a.innerText=e;try{a.textContent=e}catch(t){}t.getElementsByTagName("body")[0].appendChild(a);var n,o=t.createElement("script");o.src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-MML-AM_HTMLorMML.js",o.type="text/javascript",n='MathJax.Hub.Config({ tex2jax: {inlineMath: [["$","$"], ["\\(", "\\)"]], displayMath: [["\\\\[","\\\\]"], ["$$", "$$"]], processEscapes: true}}); MathJax.Hub.Startup.onload();',window.opera?o.innerHTML=n:o.text=n,t.getElementsByTagName("head")[0].appendChild(o)}(t.document):t.MathJax.Hub.Queue(new t.Array("Typeset",t.MathJax.Hub))}var e,a,n=document.getElementsByTagName("iframe");for(t(window),e=0;e<n.length;e++)(a=n[e].contentWindow||n[e].contentDocument).document||(a=a.parentNode),t(a)}();