Permanently protected page
 Actions

MediaWiki

MediaWiki:Common.js

From Screamer Wiki

Revision as of 09:12, 28 April 2018 by imported>Sumpy

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.
/* Any JavaScript here will be loaded for all users on every page load. */

var ajaxPages = ["Special:WikiActivity","Special:RecentChanges","Special:Watchlist","Special:Log","Special:Contributions"];
var AjaxRCRefreshText = 'Auto-refresh';
var AjaxRCRefreshHoverText = 'Automatically refresh this page';

/* Replaces {{Username}} with the name of the user browsing the page.
   Requires copying Template:Username. */
 
function UserNameReplace() {
    if(typeof(disableUsernameReplace) != 'undefined' && disableUsernameReplace || wgUserName == null) return;
    $("span.insertusername").html(wgUserName);
 }
 addOnloadHook(UserNameReplace);
 
 importArticles({
    type: 'script',
    articles: [
        'u:dev:MediaWiki:YoutubePlayer/code.js'
    ]
});

/* End of the {{USERNAME}} replacement */

importScriptPage('InactiveUsers/code.js', 'dev');

window.MessageWallUserTags = {
    tagColor: '#d4d4d4',
    txtSize: '10px',
    glow: false,
    users: {
        'username': 'usergroup',
        'Sumpy': 'ADMIN',
        'MoekaChiina': 'ADMIN',
        'Lawiki1534virus': 'ADMIN',
        'RogueHarrier': 'ADMIN',
        'Zeroxeon': 'ADMIN'
        'Socoollogos': 'ADMIN'
        'Kianlolcat99': 'ADMIN'
        'Abinadabi': 'ADMIN'
        'HLDK': 'ADMIN'
    }
};
 
importArticles({
    type: 'script',
    articles: [
        //other scripts,
        'u:dev:MessageWallUserTags/code.js'
    ]
});