MediaWiki:LogoChanger.js

var miniwikis = new Array( 'Sengoku Rance' );

var minilogos = new Array( 'http://images.wikia.com/alicesoft/images/thumb/d/da/Sengoku_Rance_-_logo.gif/135px-Sengoku_Rance_-_logo.gif' );

for (i = 0; i < miniwikis.length; i++){ if (wgTitle.search('^'+miniwikis[i]) {       logoChange(miniwikis[i]);        break;    } }

function logoChange(idx){ var linkA; switch(skin) { case 'monobook': linkA = document.getElementById('p-logo').firstChild; break case 'smoke': case 'slate': linkA = document.getElementById('wikialogo'); break default: return; }   linkA.parent.style.text-align = 'center'; var imgA = linkA.appendChild(document.createElement('IMG')); imgA.src = minilogos[idx]; }