User:Fiona Weber/modern.js

//And now: hide stuff:

elements=new Array("n-aboutsite","n-topics","n-alphindex","n-Neuerartikel","n-portal","n-contact","n-sitesupport"); for(var i=0;i<elements.length;++i){ var del_element=document.getElementById(elements[i]); del_element.parentNode.removeChild(del_element); }

Array.prototype.contains = function(value) { for (var i = 0; i < this.length; i++) { if (this[i] === value) return true; }   return false; };

languages=new Array("interwiki-de","interwiki-simple");

var interwikis= document.getElementById("p-lang").getElementsByTagName("div")[0].getElementsByTagName("ul")[0].getElementsByTagName("li"); for(var i=0;i<interwikis.length;){ var node= interwikis[i]; //   if(node.className==="interwiki-en"){ if(languages.contains(node.className)){ ++i; }   else{ node.parentNode.removeChild(node); } }