User:Therealjackson/common.js

mw.util.addPortletLink(   'p-tb', 'http://mediawiki.org/',    'DARKMODE', 'darkmode', 'Enable DarkMode', 'm', '#t-print' );

var $darkModeLink = $("#darkmode").children; console.log ($darkModeLink);

$darkModeLink.on("click", function(event) {	 console.log("in darkmode link");	  event.preventDefault;	  console.log("see better in dark mode");	  $("body").toggleClass("darkmode");	} );