User:KeepingCalm/global.js

importScriptPage('User:Monchoman45/ChatHacks.js', 'c');

// Code editor importScriptPage('Code/code.js', 'dev'); // Patrol tool importScriptPage('AjaxPatrol/code.js', 'dev' ); // Recent changes pro importScriptPage('AjaxRC/code.js', 'dev'); // Undo pro importScriptPage( 'AjaxUndo/code.js', 'dev' ); // Hide redirects in RC importScriptPage('AllPagesHideRedirect/code.js', 'dev'); // EditCounter importScriptPage('EditcountTag/code.js', 'dev'); // Fast delete old images. importScriptPage( 'FastOldImageDelete/code.js', 'dev' ); // External Image Loader (example:http://dev.wikia.com/wiki/Template:ExternalImageLoader) importScriptPage('ExternalImageLoader/code.js', 'dev'); // Countdown importScriptPage('Countdown/code.js', 'dev'); importScriptPage('SpeedRaw/code.js', 'korniux');

WHAMDelay = 1000; importScriptPage('MediaWiki:WHAM/code.2.js', 'dev');

importScriptPage("MediaWiki:PageMakerPro/code.js", "dev");

importArticles({   type: "script",    articles: [        "u:dev:MediaWiki:RecentChangesMultiple/code.2.js"    ] });

importScriptPage('User:Wildream/ContributionsCalculator.js', 'ru.community');

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:PortableCSSPad/code.js'    ] });

/** * lastEdited.js * * Adds last edited details to the page * @author: w:User:Fubuki風吹 */ $(function {   if (mw.config.get('wgNamespaceNumber') === 0 && !$.getUrlVar('diff') && !$.getUrlVar('oldid')) {        $.get(mw.util.wikiScript('api'), { action: 'query', titles: mw.config.get('wgPageName'), prop: 'revisions', rvprop: 'timestamp|user', rvdiffto: 'prev', format: 'json' }, function(data) { console.log(data); for (var i in data.query.pages) break; var rv = data.query.pages[i].revisions[0]; var html = ' Последняя правка совершена участником ' + rv.user + ' (' + new Date(rv.timestamp).toUTCString.slice(0, 16) + ') , ' + new Date(rv.timestamp).toUTCString.slice(17, 25) + ' (UTC) (разн) '; $('.header-container').after(html); mw.loader.using(['mediawiki.action.history.diff'], function {               $('.lastEdited-diff').on('click', function { $.showCustomModal('Изменения: ' + mw.config.get('wgPageName').replace(/_/g, ' '), rv.diff['*'], {                       id: 'lastEdited-diff',                        width: 650,                        buttons: [{                            message: 'Link',                            defaultButton: true,                            handler: function {                                $('#lastEdited-diff').closeModal;                                window.open('/?diff=' + rv.diff.to, '_blank');                            }                        }, {                            message: 'Undo',                            handler: function {                                $('#lastEdited-diff').closeModal;                                window.open('/wiki/' + mw.config.get('wgPageName') + '?action=edit&undoafter=' + rv.diff.from + '&undo=' + rv.diff.to, '_blank');                            } }, {                           message: 'Cancel', handler: function { $('#lastEdited-diff').closeModal; }                       }]                    });                });            });        });    } });