|
Wikipedia开启Show LaTeX source后
添加以下油猴脚本- // ==UserScript==
- // @name Use MathJax on Wikipedia
- // @description Inject MathJax script
- // @icon https://www.mathjax.org/favicon.ico
- // @match https://*.wikipedia.org/*
- // @license GPL
- // ==/UserScript==
- var scr = document.createElement("script");
- scr.innerHTML="MathJax={tex:{inlineMath:[['$','$']]}}";
- document.head.appendChild(scr);
- var mj = document.createElement("script");
- mj.src = "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js";
- document.head.appendChild(mj);
复制代码 平时打开这个脚本可以看MathJax渲染的公式.
需要复制源码时在油猴菜单把脚本关闭, 重载页面, 可以看到LaTeX源码.
 |
|