MediaWiki:Timeless.js

From Speedsolving.com Wiki

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* 2026-10-21 community plan D10: Forums / Competition / Timer links in the header on wide screens.
   Styled in MediaWiki:Timeless.css; phones get the same links from MediaWiki:Sidebar.
   Revert: delete this page (or restore an earlier revision). */
$( function () {
	var logo = document.getElementById( 'p-logo-text' );
	if ( !logo || document.getElementById( 'ss-sitelinks' ) ) {
		return;
	}
	var nav = document.createElement( 'nav' );
	nav.id = 'ss-sitelinks';
	nav.setAttribute( 'aria-label', 'SpeedSolving.com' );
	[
		[ 'https://www.speedsolving.com/forums/', 'Forums' ],
		[ 'https://www.speedsolving.com/competition/', 'Competition' ],
		[ 'https://www.speedsolving.com/pages/timer/', 'Timer' ]
	].forEach( function ( l ) {
		var a = document.createElement( 'a' );
		a.href = l[ 0 ];
		a.textContent = l[ 1 ];
		nav.appendChild( a );
	} );
	logo.insertAdjacentElement( 'afterend', nav );
} );