Jump to content

MediaWiki:Common.js

From CasinoLeaks
Revision as of 19:53, 5 November 2026 by Admin (talk | contribs) (Footer: rename to Team and experts)

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.
/* Footer links to the trust pages (CURACAOFIL-6). Owner-authorised 2026-11-05. */
mw.hook( 'wikipage.content' ).add( function () {
	var places = document.getElementById( 'footer-places' );
	if ( !places || places.querySelector( '[data-trust-links]' ) ) {
		return;
	}
	[ [ 'Methodology', 'CasinoLeaks:Methodology' ], [ 'Corrections policy', 'CasinoLeaks:Corrections_policy' ], [ 'Team and experts', 'CasinoLeaks:Team_and_experts' ], [ 'Contact', 'CasinoLeaks:Contact' ] ].forEach( function ( item ) {
		var li = document.createElement( 'li' ), a = document.createElement( 'a' );
		li.setAttribute( 'data-trust-links', '1' );
		a.href = mw.util.getUrl( item[ 1 ] );
		a.textContent = item[ 0 ];
		li.appendChild( a );
		places.appendChild( li );
	} );
} );