User:Videogaming1000/vector.js

$( function {	var darkMode = false;  var $dark_mode_link = $('Toggle dark mode');  $( '#pt-logout' ).after($dark_mode_link);

$dark_mode_link.find( 'a' ).on( 'click', function ( e ) {		e.preventDefault;		darkMode = !darkMode;

$( document.documentElement ).toggleClass( 'client-dark-mode', darkMode ); $( e.target ).text( darkMode ? 'Turn on the lights' : 'Turn off the lights' ); } ); } );