MediaWiki:Common.js/skinButtons.js

/* ************************************************************* */ // Wikia Skin Selection Buttons

// Add skin selector buttons function SkinButtons { var href = +window.location+ ; var monobook = href ; var oasis = href ; var mobile = href ; var phone = href ; var app = href ;

if (href.match(/useskin=/) == null) {      if (href.match(/\?/)) {         monobook = href + '&useskin=monobook' ; oasis = href + '&useskin=wikia' ; mobile = href + '&useskin=wikiamobile' ; phone = href + '&useskin=wikiaphone' ; app = href + '&useskin=wikiaapp' ; } else { monobook = href + '?useskin=monobook' ; oasis = href + '?useskin=wikia' ; mobile = href + '?useskin=wikiamobile' ; phone = href + '?useskin=wikiaphone' ; app = href + '?useskin=wikiaapp' ; }   } else { if (href.match(/useskin=monobook/)) {         monobook = href ; oasis = href.replace("useskin=monobook","useskin=wikia"); mobile = href.replace("useskin=monobook","useskin=wikiamobile"); phone = href.replace("useskin=monobook","useskin=wikiaphone"); app = href.replace("useskin=monobook","useskin=wikiaapp"); } else if (href.match(/useskin=wikia/)) { oasis = href ; monobook = href.replace("useskin=wikia","useskin=monobook"); mobile = href.replace("useskin=wikia","useskin=wikiamobile"); phone = href.replace("useskin=wikia","useskin=wikiaphone"); app = href.replace("useskin=wikia","useskin=wikiaapp"); } else if (href.match(/useskin=oasis/)) { oasis = href.replace("useskin=oasis","useskin=wikia"); monobook = href.replace("useskin=oasis","useskin=monobook"); mobile = href.replace("useskin=oasis","useskin=wikiamobile"); phone = href.replace("useskin=oasis","useskin=wikiaphone"); app = href.replace("useskin=oasis","useskin=wikiaapp"); } else if (href.match(/useskin=wikiamobile/)) { oasis = href.replace("useskin=wikiamobile","useskin=wikia"); monobook = href.replace("useskin=wikiamobile","useskin=monobook"); mobile = href ; phone = href.replace("useskin=wikiamobile","useskin=wikiaphone"); app = href.replace("useskin=wikiamobile","useskin=wikiaapp"); } else if (href.match(/useskin=wikiaphone/)) { oasis = href.replace("useskin=wikiaphone","useskin=wikia"); monobook = href.replace("useskin=wikiaphone","useskin=monobook"); mobile = href.replace("useskin=wikiaphone","useskin=wikiamobile"); phone = href ; app = href.replace("useskin=wikiaphone","useskin=wikiaapp"); } else if (href.match(/useskin=wikiaapp/)) { oasis = href.replace("useskin=wikiaapp","useskin=wikia"); monobook = href.replace("useskin=wikiaapp","useskin=monobook"); mobile = href.replace("useskin=wikiaapp","useskin=wikiamobile"); phone = href.replace("useskin=wikiaapp","useskin=wikiaphone"); app = href ; } }

// $('#WikiaArticle').prepend(' Mobile Phone App Monobook Oasis '); // Oasis

$('#WikiaHeader').append(' Mobile Phone App Monobook</a> Oasis</a> '); // Oasis

// $('#EditPageToolbar').append(' Mobile</a> Phone</a> App</a> Monobook</a> Oasis</a> '); // Oasis

$('#contentSub').prepend(' Mobile</a> Phone</a> App</a> Monobook</a> Oasis</a> '); // Monobook

}

addOnloadHook(SkinButtons);

/* ************************************************************* */