User:Techpriest/common.js

/* Page used for JS testing */

/* Below this be the dragons of testing zone. */ var node = mw.util.addPortletLink(   'p-toggle-dark-mode',    'Toggle Dark mode',    'Example' ); $( node ).on( 'click', function ( e ) {   console.log( 'Example' );    e.preventDefault; } );