ElEditors, Interface administrators, Administrators
70,975
edits
No edit summary |
No edit summary Tag: Reverted |
||
Line 347: | Line 347: | ||
}) | }) | ||
}) | }) | ||
// Add an event listener for the DOMNodeInserted event on the body element | |||
document.body.addEventListener('DOMNodeInserted', function (event) { | |||
// Check if the event was triggered by the #mw-content-text element, which contains the page content | |||
if (event.target.id === 'mw-content-text') { | |||
console.log('test') | |||
} | |||
}); | |||
}); | }); |