## How to Modify the MathJax Contextual Menu After it has Loaded

• You do not need access to the server. This is done without changing the MathJax source.
• Edit the MediaWiki:Common.js page.
• Use the function
mw.loader.using()


with the hook 'ext.math.mathjax.mathjax' to run the code when MathJax has loaded. Otherwise, the code will start running before MathJax has loaded, which will cause an error.

• If you want to use a different hook, there is a list of the available hooks if you enter mw.loader.getModuleNames() into the web console.
 MathJax.Callback.Queue(