mathfixer, a tool for fixing math in MediaWiki-based wikis
MediaWiki-based wikis usually use Wikipedia to show math.
However, Wikipedia is blocked in some places.
This tool replaces math tags with MathJax to let the math be displayed correctly, using a local proxy at 127.0.0.1 (i.e.: this is not a VPN-like tool).
Installation
mathfixer requires mitmproxy and bs4. You should set the system proxy IP to be 127.0.0.1 and port to be the port configured for mathfixer for it to work. Also, it requires the command line mitmdump
(part of mitmproxy) to be in PATH
.
Usage
mathfixer
The port 8080
is used for the proxy and the wiki esolangs.org
is fixed.
mathfixer -p 1234 -d somewiki.org
The port 1234
is used for the proxy and the wiki somewiki.org
is fixed.
You should bypass the browser cache if you accessed the wiki before.
Effect
Before:
After:
Note: Both images are screenshots of https://esolangs.org/wiki/Factorial which means they are both public domain.