User:StrawberryMaster/global.js

/* Auto updating recent changes opt-in. * See w:c:dev:AjaxRC for info & attribution. */ window.AjaxRCRefreshText = 'Auto-refresh'; window.AjaxRCRefreshHoverText = 'Automatically refresh the page'; window.ajaxPages = ["Special:RecentChanges", "Special:WikiActivity", "Special:Chat", "Special:Watchlist", "Special:Log", "Special:Log/upload", "Special:Contributions"]; window.ajaxIndicator = 'http://vignette2.wikia.nocookie.net/dev/images/8/82/Facebook_throbber.gif'; window.batchDeleteDelay = 10; // 10 miliseconds :P

/* Create userpage script. * See w:c:dev:QuickCreateUserPage for info & attribution. */

var qtUserPageTemplate = ''; var qtEnableUserPageOverwrite = true;

/* Vector skin configuration. * See w:c:dev:Pseudo-Vector JS for info & attribution. */ window.pseudoVector = { loadCss: true, addReadTab: true, addContributionsTab: true, disableWatchIcon: false, newDiffStyle: true };

/* FastDelete script configuration. * See w:c:dev:FastDelete for info & attribution. */

fdButtons[fdButtons.length] = {'summary': 'spam','label': 'S'}; fdButtons[fdButtons.length] = {'summary': 'vandalism','label': 'V'}; fdButtons[fdButtons.length] = {'summary': 'Housekeeping','label': 'HK'}; fdButtons[fdButtons.length] = {'summary': 'Cleanup','label': 'C'}; fdButtons[fdButtons.length] = {'summary': 'Unused','label': 'U'}; fdButtons[fdButtons.length] = {'summary': 'Unofficial/not-needed/irrelevant','label': 'UNI'}; fdButtons[fdButtons.length] = {'summary': 'Other reason','label': 'Other'};

/* Removes backlinks from pages. * See w:c:dev:Linksweeper for info & attirbution. */ window.linkSweepConfirmation = true; window.LinkSweeperDelay = 1000;

/* Import JavaScript and Stylesheet articles from any wiki. * See  for info & attribution. */

importArticles({	type: 'script',	articles: [           // ...            'u:dev:MediaWiki:AjaxRC/code.js',            'u:dev:MediaWiki:AjaxBatchDelete/code.2.js',            'u:dev:MediaWiki:AjaxBatchUndelete.js',            'u:dev:MediaWiki:AjaxPatrol/code.js',            'u:dev:MediaWiki:ArchiveTool/code.js',            'u:dev:MediaWiki:DisplayClock/code.js',            'u:dev:MediaWiki:FastDelete/beta.js',            'u:dev:MediaWiki:Linksweeper/code.js',            'u:dev:MediaWiki:MassBlock/code.js',            'u:dev:MediaWiki:MassCategorization/code.js',            'u:dev:MediaWiki:MassProtect/code.js',            'u:dev:MediaWiki:MassRename/code.js',            'u:dev:MediaWiki:MassUserRights/code.js',            'u:dev:MediaWiki:Pseudo-Vector.js',            'u:dev:MediaWiki:QuickCreateUserPage/code.js',            'u:dev:Mediawiki:QuickToolsv2/code.js',            'u:dev:MediaWiki:WHAM/code.2.js', // ...	] });

(function ($, mw, rs) {   'use strict';                // redirect                mw.toolbar.addButton( 'http://images.wikia.com/central/images/c/c8/Button_redirect.png', 'Redirect', '#REDIRECT ',                   '', 'Insert text', 'mw-editbutton-redirect' );               // wikitable                mw.toolbar.addButton( 'http://images3.wikia.nocookie.net/central/images/4/4a/Button_table.png', 'Insert a table', '{| class="wikitable"\n|-\n', '\n|}', '! header 1\n! header 2\n! header 3\n|-\n| row 1, cell 1\n| row 1, cell 2\n| row 1, cell 3\n|-\n| row 2, cell 1\n| row 2, cell 2\n| row 2, cell 3', 'mw-editbutton-wikitable' );               // line break                mw.toolbar.addButton( 'http://images2.wikia.nocookie.net/central/images/1/13/Button_enter.png', 'Line break', ' ',                   ,                    ,                    'mw-editbutton-linebreak' );               // gallery                mw.toolbar.addButton( 'http://images2.wikia.nocookie.net/central/images/1/12/Button_gallery.png', 'Insert a picture gallery', '\n  ', '>\nFile:Example.jpg|Caption1\nFile:Example.jpg|Caption2\n<', 'mw-editbutton-gallery' );               // move edittools expand to end of buttons in oasis editor                if (conf.skin === 'oasis') {                    // pass true to .clone to keep event listeners                    more = $('.cke_toolbar_expand').clone(true);                    $('.cke_toolbar_expand').remove;                    $('.cke_toolbar_source').append(more);                } $(init); }(this.jQuery, this.mediaWiki, this.rswiki = this.rswiki || {}));