MathML兼容性改善

使用MathJax在不受支持的浏览器上显示MathML内容

目前为 2020-05-02 提交的版本。查看 最新版本

// ==UserScript==
// @name         MathML Polyfill
// @name:zh-CN   MathML兼容性改善
// @description  Display MathML on unsupported browser, using MathJax
// @description:zh-CN  使用MathJax在不受支持的浏览器上显示MathML内容
// @namespace    https://gf.qytechs.cn/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";
}

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址