Permanently protected page

MediaWiki:Common.js: Difference between revisions

From Screamer Wiki
Jump to: navigation, search
imported>Sumpy
No edit summary
imported>Sumpy
No edit summary
Line 1: Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */
/* 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.
/* Replaces {{Username}} with the name of the user browsing the page.
   Requires copying Template:Username. */
   Requires copying Template:Username. */
Line 24: Line 19:


importScriptPage('InactiveUsers/code.js', 'dev');
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'
    ]
});

Revision as of 09:39, 28 April 2018

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