Sha256: 992039336cb535eb0524e85aa77049b95e602b869e02140842f19fce0c7e7358

Contents?: true

Size: 846 Bytes

Versions: 12

Compression:

Stored size: 846 Bytes

Contents

// ==UserScript==
// @name           MathJax MathML
// @namespace      http://www.mathjax.org/
// @description    Insert MathJax into pages containing MathML
// @include        *
// ==/UserScript==

if ((window.unsafeWindow == null ? window : unsafeWindow).MathJax == null) {
  if ((document.getElementsByTagName("math").length > 0) ||
      (document.getElementsByTagNameNS == null ? false :
      (document.getElementsByTagNameNS("http://www.w3.org/1998/Math/MathML","math").length > 0))) {
    var script = document.createElement("script");
    script.src = "http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML-full";
    var config = 'MathJax.Hub.Startup.onload()';
    if (window.opera) {script.innerHTML = config} else {script.text = config}
    document.getElementsByTagName("head")[0].appendChild(script);
  }
}

Version data entries

12 entries across 6 versions & 2 rubygems

Version Path
mathjax-rails-1.0.3 vendor/mathjax-MathJax-da8d488/docs/source/_static/mathjax_mathml.user.js
mathjax-rails-1.0.3 vendor/mathjax-MathJax-da8d488/docs/html/_static/mathjax_mathml.user.js
mathjax-rails-1.0.2 vendor/mathjax-MathJax-da8d488/docs/html/_static/mathjax_mathml.user.js
mathjax-rails-1.0.2 vendor/mathjax-MathJax-da8d488/docs/source/_static/mathjax_mathml.user.js
mathjax_rails-0.0.1 vendor/mathjax-MathJax-da8d488/docs/source/_static/mathjax_mathml.user.js
mathjax_rails-0.0.1 vendor/mathjax-MathJax-da8d488/docs/html/_static/mathjax_mathml.user.js
mathjax-rails-0.0.4 vendor/mathjax-MathJax-da8d488/docs/html/_static/mathjax_mathml.user.js
mathjax-rails-0.0.4 vendor/mathjax-MathJax-da8d488/docs/source/_static/mathjax_mathml.user.js
mathjax-rails-0.0.3 vendor/mathjax-MathJax-da8d488/docs/source/_static/mathjax_mathml.user.js
mathjax-rails-0.0.3 vendor/mathjax-MathJax-da8d488/docs/html/_static/mathjax_mathml.user.js
mathjax-rails-0.0.2 vendor/mathjax-MathJax-f5cd294/docs/source/_static/mathjax_mathml.user.js
mathjax-rails-0.0.2 vendor/mathjax-MathJax-f5cd294/docs/html/_static/mathjax_mathml.user.js