Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
Zeile 21: | Zeile 21: | ||
// </source> |
// </source> |
||
− | importScriptPage('HideRail/code.js', 'dev'); |
||
importArticles({ |
importArticles({ |
||
type: 'script', |
type: 'script', |
Version vom 30. Juli 2013, 16:16 Uhr
$(function() {
var rights = {};
/*Quelle: http://candybox.wikia.com/wiki/MediaWiki:Wikia.js */
rights["Mariofan13"] = ["Admin", "Bureaukrat"],
rights["Wikia"] = ["Wikia-Bot"],
rights["MarioBot13"] = ["Bot"],
rights["MarioWiki Bot"] = ["Bot"],
rights["BossoBot"] = ["Bot"];
if (typeof rights[wgTitle] != "undefined") {
// remove old rights
$('.UserProfileMasthead .masthead-info span.tag').remove();
for (var i = 0, len = rights[wgTitle].length; i < len; i++) {
// add new rights
$('<span class="tag" style="margin-left:10px;">' + rights[wgTitle][i] + '</span>').appendTo('.masthead-info hgroup');
}
}
});
// </source>
importArticles({
type: 'script',
articles: [
'u:dev:SexyUserPage/code.js'
]
});