MediaWiki:Common.js
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
window.ajaxPages = ["Special:RecentChanges","Special:Watchlist","Special:Log","Special:Contributions"];
window.ajaxIndicator = 'http://vignette1.wikia.nocookie.net/subnautica/images/d/de/Ajax-loader.gif';
window.ajaxRefresh = 30000;
window.AjaxRCRefreshText = 'Auto-refresh';
window.AjaxRCRefreshHoverText = 'Automatically refresh the page';
window.UserTagsJS = {
modules: {},
tags: {
rollback: { u: 'Rollback', order: 100 }
}
};
UserTagsJS.modules.custom = {
'ChrisFo': ['rollback'];
'Mesmerized': ['rollback'];
'MorphGuy': ['rollback'];
};
// Background Test
// You can change this values.
var bg_color = '#000',
bg_size = 'cover',
bg_attachment = 'fixed',
bg_repeat = 'no-repeat';
// This is the important part
switch (mw.config.get('wgPageName')) {
case "Bulb Zone":
// Backgrounds for page "Name1"
var bgrandom_list = ["Community image 1395684116.jpg"];
break;
}
// Import always after you declare your variables or in MediaWiki:ImportJS
importArticles({
type: 'script',
articles: [
'u:dev:RandomBackground/code.js'
]
});