MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */

/* yell at Crec0 */ document.getElementById('pt-darkmode-toggle').addEventListener('click', function(e) {   const currentText = e.target.innerHTML;    if (currentText == 'Default mode') {        console.log(document.querySelector("#twitter-widget-0").innerHTML);    } });