252
edits
Changes
From CUGC Wiki
Get element from $content.
mw.hook('wikipage.content').add(function ($content) {
console.log($content);
console.log(typeof $content[0]); var element = $content[0];
var observer = new MutationObserver(function(mutations) {
if (document.contains($contentelement)) {
console.log("It's in the DOM!");
observer.disconnect();
} else {