Anonymous

Changes

From CUGC Wiki

MediaWiki:Common.js

316 bytes removed, 16: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.log($content); console.logif (typeof $contentMathJax === 'undefined');{ var observer = new MutationObserver setTimeout(function(mutations) { if (document.containswaitForMathJax($content)) { console.log("It's in the DOM!"; }, 1000); // using $content directly throws errors } else { MathJax.Hub.Queue(["Typeset", MathJax.Hub, document.getElementById("wikiPreview")$content[0]]).execute(); observer.disconnect(); } } else { consolemw.loghook("Still waiting"); } }'wikipage.content'); observer.observeadd(document, {attributes: false, childList: true, characterData: false, subtree: true});}waitForMathJax);