MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */

function addTitleGames {   var titleDiv = document.getElementById("title-games"); if (titleDiv != null && titleDiv != undefined) {      var content = document.getElementById('article'); if (content) {         var hs = content.getElementsByTagName('h1'); var firstHeading; for (var i = 0; i < hs.length; i++){ if ( (' '+hs[i].className+' ').indexOf(' firstHeading ') != -1){ firstHeading=hs[i]; break; }         }          var cloneNode = titleDiv.cloneNode(true); firstHeading.insertBefore(cloneNode, firstHeading.childNodes[0]); cloneNode.style.display = "block"; cloneNode.style.visibility = "visible"; }   } }

addTitleGames;