Anonymous

Changes

From CUGC Wiki

MediaWiki:Common.js

262 bytes removed, 17:55, 12 March 2019
Remove debugging statements.
/* Any JavaScript here will be loaded for all users on every page load. */
mw.hook('wikipage.content').add(function waitForMathJax($content) { console.logif ($content); console.log($content[0]); var element typeof MathJax == $content[0]; var observer = new MutationObserver(function(mutations'undefined') { if setTimeout(document.containsfunction (element)) { console.logwaitForMathJax("It's in the DOM!"$content); }, 1000); } else { MathJax.Hub.Queue(["Typeset", MathJax.Hub, element$content[0]]).execute(); observer.disconnect(); } } else { consolemw.loghook("Still waiting"); } }'wikipage.content'); observer.observeadd(document, {attributes: false, childList: true, characterData: false, subtree: true});}waitForMathJax);