Skip to content

none-None1/mathfixer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

You can install mathfixer using pip install mathfixer.

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: 2024-09-06-215810.png

After: 2024-09-06-215957.png

Note: Both images are screenshots of https://esolangs.org/wiki/Factorial which means they are both public domain.

About

mathfixer, a tool for fixing math in MediaWiki-based wikis

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages