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.
importArticles({
    type: 'script',
    articles: [
        'u:a:MediaWiki:Gadget-HotCat.js',
        'u:dev:MediaWiki:AjaxBatchDelete.js',
        'u:dev:MediaWiki:DiscussionsFeed.js',
        'u:dev:MediaWiki:MarkForDeletion/code.js',
        'u:dev:MediaWiki:QuickCreateUserPage/code.js',
        'u:dev:MediaWiki:WHAM/code.2.js',
        'u:mlp:User:Jr Mime/MarkForTemplate/General.js',
        'u:dev:MediaWiki:LastEdited/code.js',
        'u:dev:MediaWiki:QuickDiff/code.js',
        'u:dev:MediaWiki:Rollback/code.js',
        'u:dev:MediaWiki:RollbackSpamUserContribs/code.js',
        'u:dev:MediaWiki:Standard Edit Summary/code.js',
    ]
});
$('ul.tools > li:first-child').after(
    $('<li>').append(
        $('<a>', {
            href: mw.util.getUrl('Special:DiscussionsFeed'),
            text: 'Discussions Feed'
        })
    )
);
$('#my-tools-menu').prepend(
    $('<li>', {
        'class': 'custom'
    }).append(
        $('<a>', {
            href: mw.util.getUrl('Special:ListAdmins'),
            text: 'List Admins'
        })
    )
);
AjaxRCRefreshText = 'Auto-refresh';
AjaxRCRefreshHoverText = 'Automatically refresh the page';
// Signature button
if (window.mwCustomEditButtons) {
    mwCustomEditButtons.push(
        {
            imageFile: 'https://images.wikia.nocookie.net/mlp/images/a/a6/Pictogram_voting_comment.svg',
            speedTip: 'Local Signature',
            tagOpen: '{' + '{User:343TheGuiltyProphet/Sig}}',
            tagClose: '~~' + '~~' + '~',
            sampleText: ' '
        },
        {
            imageFile: 'https://images.wikia.nocookie.net/mlp/images/a/a6/Pictogram_voting_comment.svg',
            speedTip: 'Global Signature',
            tagOpen: '{' + '{w:User:343TheGuiltyProphet/Sig}}',
            tagClose: '~~' + '~~' + '~',
            sampleText: ' '
        }
    );
}
                    // adds a "Mark for deletion" button to the user's toolbar
                    function initDeleteNoticeButton() {
                            var $button, toolbar, $mytoolsLI, $customizeLI;
 
                            // create button
                            $button = $('<li><a id="mark-template" style="cursor: pointer;">Prefix Information</a></li>');
                            $button.click(function deleteNoticeButtonClickHandler() {
                                    var promptedDeleteReason = "subst:User:343TheGuiltyProphet/prefix_information";
                                    if (typeof window.c === "object" && window.Template !== null && typeof window.Template.promptedDeleteReason === "string") {
                                            promptedDeleteReason = window.Template.promptedDeleteReason;
                                    }
 
                                    var deleteReason = window.prompt("Enter template name here - Signature must already be in the template - Don't add extra {{}}", promptedDeleteReason);
 
                                    if (typeof deleteReason === "string" && deleteReason.length > 0) {
                                            setDeleteNotice(deleteReason);
                                    }
                            });
 
                            // add button to toolbar
                            toolbar = document.getElementById("WikiaBarWrapper");
                            if (toolbar !== null) {
                                    // oasis
                                    $mytoolsLI = $(toolbar).find("li.mytools");
                                    if ($mytoolsLI.length > 0) {
                                            // insert link before My Tools
                                            $mytoolsLI.before($button);
                                    } else {
                                            // try to insert link before Customize
                                            $customizeLI = $(toolbar).find("a.tools-customize").parent();
                                            $customizeLI.before($button);
                                    }
                            } else {
                                    // monobook
                                    toolbar = document.getElementById("p-tb");
                                    if (toolbar !== null) {
                                            $(toolbar).find("ul").append($button);
                                    }
                            }
                    }
 
                    // add button on DOMReady
                    $(initDeleteNoticeButton);
            }(jQuery, mediaWiki, window, document));
    }