User:Tdragan/common.js

var mathTags = $('.mwe-math-mathml-a11y'); if (mathTags.length > 0){ window.MathJax = { AuthorInit: function { MathJax.Hub.Register.StartupHook("End",function {        MathJax.Hub.Queue( function{ mathTags.removeClass('mwe-math-mathml-a11y'); mathTags.removeClass('.mwe-math-mathml-a11y'); mathTags.removeClass('mwe-math-fallback-image-display'); mathTags.removeClass('.mwe-math-fallback-image-display'); $('[class^=mwe-math-fallback-image],[data-class^=mwe-math-fallback-image]').remove mathTags.removeClass('mwe-math-mathml-a11y'); // make the span around MathML (now MathJax output) visible $('.mwe-math-fallback-image-inline').addClass('mwe-math-mathml-a11y'); }       );      });    }  };  mw.loader.load('https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=MML_HTMLorMML-full'); }