Zum Inhalt springen

„Benutzer:Isnow/vector.js“ – Versionsunterschied

aus Wikipedia, der freien Enzyklopädie
//Reference: http://meta.wikimedia.org/wiki/User:Fristu/monobook.js
 
K hat „Benutzer:Isnow/monobook.js“ nach „Benutzer:Isnow/vector.js“ verschoben: Benutzer:Isnow/vector.js
(kein Unterschied)

Version vom 21. Juni 2010, 18:00 Uhr

//Reference: http://meta.wikimedia.org/wiki/User:Fristu/monobook.js

function morelangs() {
  var langs = document.getElementById('p-lang').cloneNode(true);
  // don't use the same ids twice
  langs.id = 'mylangs';

  var listitems = langs.getElementsByTagName('LI');
  for (i=0;i<listitems.length;i++) {
    switch (listitems[i].className) {
      case 'interwiki-de':
        listitems[i].className = 'mylangs-show';
        break;
      case 'interwiki-en':
        listitems[i].className = 'mylangs-show';
        break;
      case 'interwiki-fr':
        listitems[i].className = 'mylangs-show';
        break;
      case 'interwiki-ja':
        listitems[i].className = 'mylangs-show';
        break;
      case 'interwiki-ko':
        listitems[i].className = 'mylangs-show';
        break;
      case 'interwiki-zh':
        listitems[i].className = 'mylangs-show';
        break;
      default :
        listitems[i].className = 'mylangs-none';
    }
  }
  // drop them at the bottom of the content area
  document.getElementById('column-content').appendChild(langs);
}
if (window.addEventListener) window.addEventListener("load",morelangs,false);
else if (window.attachEvent) window.attachEvent("onload",morelangs);