User:Kameejl/Vector.js

function getParamValue(paramName, h){

if (typeof h == 'undefined' ) { h = document.location.href; } var cmdRe=RegExp('[&?]'+paramName+'=([^&]*)'); var m=cmdRe.exec(h); if (m) { try { return decodeURI(m[1]); } catch (someError) {} }	return null; } addOnloadHook(function { var summary=getParamValue('autosummary');

if(navigator.appName=="Microsoft Internet Explorer"){ tag1="" tag2="" } else{ tag1="" tag2=" " }; /*   Written by Jonathan Snook, http://www.snook.ca/jonathan Add-ons by Robert Nyman, http://www.robertnyman.com function getElementByClassName(oElm, strTagName, strClassName){ var arrElements = (strTagName == "*" && oElm.all)? oElm.all : oElm.getElementsByTagName(strTagName); var arrReturnElements = new Array; strClassName = strClassName.replace(/\-/g, "\\-"); var oRegExp = new RegExp("(^|\\s)" + strClassName + "(\\s|$)"); var oElement; for(var i=0; i<arrElements.length; i++){ oElement = arrElements[i]; if(oRegExp.test(oElement.className)){ arrReturnElements.push(oElement); }   }    return (arrReturnElements) }

function ppp(text, capitalize){ var text; var capitalize; if(capitalize!="yes"){ capitalize="no"; }

if(getElementByClassName(document,"*","infobox vcard")[0]){ //alert('start'); var patat=getElementByClassName(document,"*","infobox vcard")[0]; var aeroplanedeluxe; for(var i=0;i0){ var aeroplane=patat.getElementsByTagName("td")[aeroplanedeluxe].innerHTML; var aeroplanedelux=aeroplane; var aeroplanedeluxor=aeroplanedelux.indexOf(","); while (aeroplanedeluxor!=-1){ aeroplanedelux=aeroplanedelux.replace(","," "); aeroplanedelux=aeroplanedelux.replace(", "," "); aeroplanedelux=aeroplanedelux.replace(", "," "); aeroplanedelux=aeroplanedelux.replace(", "," "); aeroplanedelux=aeroplanedelux.replace(", "," "); aeroplanedelux=aeroplanedelux.replace(", "," "); aeroplanedelux=aeroplanedelux.replace(", "," "); aeroplanedelux=aeroplanedelux.replace(", "," "); aeroplanedelux=aeroplanedelux.replace(", "," "); aeroplanedelux=aeroplanedelux.replace(","," "); aeroplanedelux=aeroplanedelux.replace(", "," "); aeroplanedelux=aeroplanedelux.replace(","," "); aeroplanedelux=aeroplanedelux.replace(", "," "); aeroplanedelux=aeroplanedelux.replace(","," "); aeroplanedelux=aeroplanedelux.replace(", "," "); aeroplanedelux=aeroplanedelux.replace(","," "); aeroplanedelux=aeroplanedelux.replace(", "," "); aeroplanedeluxor=aeroplanedelux.indexOf(","); } var peer=aeroplanedelux; if(capitalize=="yes"){ var temp=new Array; var temppart=new Array; temp=aeroplanedelux.split('">');     peer="";      for(var z=0;z"+temppart[1]        }        else{          temp[z]=temppart[0].substr(0,1).toUpperCase+temppart[0].substr(1).toLowerCase+""+temppart[1]

};       if(z!=temp.length-1){ peer=peer+temp[z]+"\">"       }        else{          peer=peer+temp[temp.length-1]        };              }       if(text=="Years active"){        var tempcomment=new Array;        var tempcommentpart=new Array;        tempcomment=aeroplanedelux.split(tag2); //  alert("2|"+tempcomment[0]+"|"+tempcomment[1])               var vlees=tempcomment[0].indexOf("-");        var taart=tempcomment[0].indexOf(" - ");        var groente=tempcomment[0].indexOf(" – ");        var aardappels=tempcomment[0].indexOf(" – ");

while (vlees!=-1){ tempcomment[0]=tempcomment[0].replace("-","–"); vlees=tempcomment[0].indexOf("-"); }       while (taart!=-1){ tempcomment[0]=tempcomment[0].replace(" - ","–"); taart=tempcomment[0].indexOf(" - "); }       while (groente!=-1){ tempcomment[0]=tempcomment[0].replace(" – ","–"); groente=tempcomment[0].indexOf(" – "); }       while (aardappels!=-1){ tempcomment[0]=tempcomment[0].replace(" – ","–"); aardappels=tempcomment[0].indexOf(" – "); }       if(tempcomment.length>1){ var koek=tempcomment[1].indexOf(" "); while (koek!=-1){ tempcomment[1]=tempcomment[1].replace(" ",", "); koek=tempcomment[1].indexOf(" "); }         peer = tempcomment[0] + " " + tempcomment[1]; }       else{ peer = tempcomment[0] };     }    }    patat.getElementsByTagName("td")[aeroplanedeluxe].innerHTML=peer; } else{ return }; } }; //importScript('User:Kameejl/formatmai.js'); //importScript('User:Kameejl/cheesecakegalore.js'); ppp('Associated acts','no'); ppp('Genre(s)','yes'); ppp('Years active','yes'); ppp('Label(s)','no'); ppp('Occupation(s)','yes'); ppp('Instrument(s)','yes'); ppp('Influences','no'); ppp('Also known as','no'); if (document.editform && summary) { document.editform.wpSummary.value=summary; } });

if(!document.all) { addOnloadHook(function {

var s=document.evaluate('//div[span/a/@class="image" and starts-with(span/a/@title,"Replace this image") and contains(span/a/@title,".svg")]',document,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); for(var i=0;i<s.snapshotLength;++i){var c=s.snapshotItem(i);c.parentNode.removeChild(c);}});

importScript('User:Lightmouse/monobook.js'); //User:Lightmouse/monobook.js importScript('User:AzaToth/morebits.js'); importScript('User:AzaToth/twinklefluff.js'); importScript('User:AzaToth/twinklewarn.js'); importScript('User:AzaToth/twinklearv.js'); importScript('User:AzaToth/twinklespeedy.js'); importScript('User:AzaToth/twinklediff.js'); importScript('User:AzaToth/twinkleprotect.js'); importScript('User:AzaToth/twinkleprod.js'); importScript('User:AzaToth/twinklexfd.js'); importScript('User:AzaToth/twinkleimage.js'); importScript('User:AzaToth/twinkleunlink.js'); importScript('User:AzaToth/twinkledelimages.js'); TwinkleConfig = { revertMaxRevisions             :       50, userTalkPageMode               :       'window', showSharedIPNotice             :       true, openTalkPage                   :       [ 'agf', 'norm', 'vand' ], openTalkPageOnAutoRevert       :       false, openAOLAnonTalkPage            :       false, summaryAd                      :       " ", deletionSummaryAd              :       " ", protectionSummaryAd            :       " ", watchSpeedyPages               :       [ 'g3', 'g5', 'g10', 'g11', 'g12' ], watchProdPages                 :       true, openUserTalkPageOnSpeedyDelete :       [], watchRevertedPages             :       [ 'agf', 'norm', 'vand', 'torev' ], markRevertedPagesAsMinor       :       [ 'agf', 'norm', 'vand', 'torev' ], deleteTalkPageOnDelete         :       false, watchWarnings                  :       true, markAIVReportAsMinor           :       true, markSpeedyPagesAsMinor         :       true, offerReasonOnNormalRevert      :       true }; //importScript('User:AzaToth/salt.js'); } //importScript('User:AzaToth/VoA.js'); //importScript('User:AzaToth/liveclock.js'); //importScript('User:Interiot/Tool2/code.js'); //importScript('User:GeorgeMoney/UserScripts/RemExternalLinks'); // User:Outriggr/metadatatest.js //importScript('User:Outriggr/metadatatest.js'); //defaultProject = "WPBiography"; //importScript('User:Voice_of_All/Deletion/monobook.js'); //importScript('User:Lupin/recent2.js'); // Lousy hack ↓