Community Central
Community Central

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.
// AjaxRC configs
window.ajaxSpecialPages = ['Newwikis', 'Recentchanges', 'Log', 'Images'];
window.ajaxRefresh = 1000;

// Page Creator configs
window.pageCreatorConfig = {
    namespaces: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 110, 111, 828, 829, 1202]
};

// Imports
importArticles({
    type: "script",
    articles: [
        'u:dev:AjaxRC/code.js',
        'u:dev:AjaxUndo/code.js',
        'u:dev:AnchoredRollback/code.js',
        'u:dev:AutoEditDropdown/code.js',
        'u:dev:CacheCheck/code.js',
        'u:dev:ContribsLink/code.js',
        'u:dev:DisplayTimer/code.js',
        'u:dev:LastEdited/code.js',
        'u:dev:Linksweeper/code.js',
        'u:dev:MastheadGender/code.js',
        'u:dev:PageCreator/code2.js',
        'u:dev:PortableCSSPad/code.js',
        'u:dev:RevealAnonIP/code.js',
        'u:dev:SearchSuggest/code.js',
        'u:dev:UnhideUserMasthead/code.js',
        'u:dev:ViewRemoved/code.js',
        'u:dev:View_Source/code.js',
        'u:starmanw:QuickLogs/code.js',
        'u:starmanw:User:StarmanW/rollback',
    ]
});

$(function () {
    var headerElem = [
        '<div class="wds-global-navigation__links"><a class="wds-global-navigation__link" href="https://webarebears.wikia.com/" target="_blank"><span>WBB</span></a></div>',
        '<div class="wds-global-navigation__links"><a class="wds-global-navigation__link" href="/wiki/Special:RecentChanges?hidebots=0" target="_blank"><span>RecentChanges</span></a></div>',
        '<div class="wds-global-navigation__links"><a class="wds-global-navigation__link" href="/wiki/Special:ListUsers/sysop" target="_blank"><span>Admins</span></a></div>',
        '<div class="wds-global-navigation__links"><a class="wds-global-navigation__link" href="https://community.wikia.com/wiki/Special:MyPage/global.js" target="_blank"><span>Global.js</span></a></div>'
    ];

    // Header
    $.each(headerElem, function (i, elem) {
        $(elem).insertBefore('.wds-global-navigation__search');
    });

    // Change profile link to contribs link
    $('.mw-userlink').each(function () {
        if (!$(this).attr('href').match('.*\:.*\/.*')) {
            var linkStr = $(this).attr('href');
            $(this).attr('href', linkStr.replace(/.*\:(.*)/g, '/wiki/Special:Contributions/$1'));
        }
    });

    //Remove all MPC
    $('.youtubeplayer').remove();
});