User:The vm/global.js

importScriptPage('MediaWiki:Common.js/BackToTopButton.js', 'ru.terraria');

/* test mode */ /* taken from Plizirim (plz not the face, not the face!) */

// AjaxRC configuration var ajaxPages = ["Special:Watchlist", "Special:Contributions", "Special:WikiActivity", "Special:RecentChanges", "Служебная:Watchlist", "Служебная:Contributions", "Служебная:WikiActivity", "Служебная:RecentChanges", "Specjalna:Ostatnie_zmiany"]; var AjaxRCRefreshText = 'Автообновление страницы'; var PurgeButtonText = 'Обновить'; // WHAM importScriptPage('MediaWiki:WHAM/code.js', 'dev'); // Массовое удаление importScriptPage('MediaWiki:AjaxBatchDelete/code.js', 'dev'); //Калькулятор вклада importScriptPage('User:Wildream/ContributionsCalculator.js', 'ru.community'); //Wiki All Stats importScriptPage('User:Kopcap94/WikiAllStats.js', 'wildreamtestfacility'); // Чатхак importScriptPage('User:Monchoman45/ChatHacks.js', 'c'); importScriptPage('MediaWiki:MessageBlocker/code.js', 'dev'); importScriptPage('User:Wildream/AdvancedWikiActivity/code.js', 'ru.community'); importScriptPage('User:KORNiUX/editaprove.js', 'c'); // An easy way to quote someone in Special:Chat importScriptPage('User:Wildream/ChatQuote/code.js', 'ru.community'); //EditTogether importScriptPage('SpeedRaw/code.js', 'korniux'); // Code editor importScriptPage('MediaWiki:Code/code.js', 'dev'); // Patrol tool importScriptPage('MediaWiki:AjaxPatrol/code.js', 'dev' ); // Recent changes pro importScriptPage('MediaWiki:AjaxRC/code.js', 'dev'); // Portable CSS Pad importScriptPage('MediaWiki:PortableCSSPad/code.js', 'dev' ); // Hide redirects in RC importScriptPage('MediaWiki:AllPagesHideRedirect/code.js', 'dev'); // EditCounter importScriptPage('MediaWiki:EditcountTag/code.js', 'dev'); // Fast delete old images. importScriptPage('MediaWiki:FastOldImageDelete/code.js', 'dev' ); // External Image Loader (example:http://dev.wikia.com/wiki/Template:ExternalImageLoader) importScriptPage('MediaWiki:ExternalImageLoader/code.js', 'dev'); // Countdown importScriptPage('MediaWiki:Countdown/code.js', 'dev'); // VizRed $('[data-id=ve-edit]').remove; //Credits $('.wikia-menu-button > ul.WikiaMenuElement').append('Credits'); function showCredits { location.href = wgServer + '/wiki/' + wgPageName + '?action=credits'; } //Save wall post importScriptPage('SaveWallPost.js', 'wildreamtestfacility'); if (wgCanonicalSpecialPageName === "Contributions") { $('#contentSub').append(' | Просмотр вклада |'); } //Викификатор importScriptPage('Użytkownik:Plizirim/wikify.js', 'pl.pliz'); // //function addWikifButton { //       var toolbar = document.getElementById('toolbar') //       if (!toolbar) return //       var i = document.createElement('img') //       i.src = 'http://upload.wikimedia.org/wikisource/ru/d/d1/Button-wikifikator.png' //       i.alt = i.title = 'викификатор' //       i.onclick = Wikify //       i.style.cursor = 'pointer' //       toolbar.appendChild(i) //} //if (wgAction == 'edit' || wgAction == 'submit') { //       importScriptURI('http://ru.wikipedia.org/w/index.php?title=MediaWiki:Wikificator.js&action=raw&ctype=text/javascript') //       addOnloadHook(addWikifButton) //} // Массовое переименование // massRenameDelay = 1000; massRenameSummary = 'automatic'; importScriptPage('MediaWiki:MassRename/code.js', 'dev');

function loadChatScripts { importArticles({   type: "script",    articles: [        "w:c:dev:ChatOptions/code.js",        "w:c:dev:ChatObject/code.js",        "w:c:d97:MediaWiki:TitleNotifications.js",        "w:c:dev:ChatOptions/code.js",    ]    }); mainRoom.maxCharacterLimit = 3000; $("#join-alert").remove; chatIsLoaded = true; }

var loadedTester = setInterval(function {  if(typeof mainRoom !== "undefined") {       importScriptPage("MediaWiki:JacobsLadderSuite.js","d97"); // import the API       setTimeout(function { loadChatScripts; },500);      clearInterval(loadedTester);       console.log("[CHAT.JS] Chat.js loading complete.");   } },100);

window.AdvancedOasisUI = { accountNavFollowedPages: true, accountNavWatchlist: true, categoryRedlink: true, RCHeader: true, DefaultSourceMode: true, lightbox: true, randomPageLimitedTo: '', activity2RC: false, }; importScriptPage('AdvancedOasisUI/code.js', 'dev');

importArticles({   type: "script",    articles: [        'w:c:dev:PurgeButton/code.js',        "w:c:dev:RevealAnonIP/usercode.js",        "w:c:dev:SearchGoButton/code.js",        "w:c:dev:AjaxUndo/code.js",        "w:c:dev:QuickTools/code.js"    ] });