MathML Polyfill

Display MathML on unsupported browser, using MathJax

Od 02.05.2020.. Pogledajte najnovija verzija.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         MathML Polyfill
// @name:zh-CN   MathML兼容性改善
// @description  Display MathML on unsupported browser, using MathJax
// @description:zh-CN  使用MathJax在不受支持的浏览器上显示MathML内容
// @namespace    https://greatest.deepsurf.us/users/197529
// @version      1.0.0
// @author       kkocdko
// @license      Unlicense
// @match        *://*/*
// ==/UserScript==
"use strict";

if (window.MathMLElement) {
  alert(
    "You don't need this user-script because the current browsers natively support MathML."
  );
} else if (document.querySelector("math")) {
  document.head.appendChild(document.createElement("script")).src =
    "https://cdn.jsdelivr.net/npm/[email protected]/es5/tex-mml-chtml.js";
}