User:Mihawk Moha/global.js

var qtEnableUserPageOverwrite = true; var qtUserPageTemplate = ''; importArticles({   type: 'script',    articles: [        'w:dev:QuickCreateUserPage/code.js',        'u:dev:PrivateMessageAlert/code.js',        'u:dev:MediaWiki:ChatOptions/code.js',        'u:kocka:MediaWiki:Emoticons.js',        'u:dev:LastEdited/code.js',        'u:dev:MediaWiki:FindAndReplace/code.js',        'u:dev:GlobalEditcount/code.js',        'u:dev:PortableCSSPad/code.js',        'u:dev:QuickDiff/code.js',        'u:dev:MediaWiki:Rollback/code.js',        'u:dev:MediaWiki:MultiUpload/code.js',        'u:dev:MediaWiki:MassBlock/code.js',        'u:dev:MediaWiki:AnchoredRollback/code.js',        'u:dev:MediaWiki:PageRenameAuto-update/code.js',        'u:dev:View_Source/code.js',        'u:dev:AutoEditDropdown/code.js',        'u:dev:QuickThreads/code.js',        'u:dev:QuickContribs/code.js',        "u:ozank:MediaWiki:Chatconnect.js",        'u:dev:QuickComments/code.js'    ] });

importScriptPage('ContribsLink/code.js', 'dev');

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

importScriptPage('ReplyBottom/code.js', 'dev');

// Nav require(['wikia.window', 'mw'], function(context, mw) {   var globalNav = document.getElementById('globalNavigation');    Array.prototype.slice.call(globalNav.getElementsByClassName('wds-global-navigation__dropdown-toggle')).forEach(function(elem){ elem.addEventListener('mouseenter', elem.click); elem.parentNode.addEventListener('mouseleave', elem.click.bind(elem)); });   globalNav.querySelector('.wds-avatar').addEventListener('click', function  { context.location = (new mw.Title(mw.user.name, 2)).getUrl; }); });

// LastEdited // http://dev.wikia.com/wiki/LastEdited window.lastEdited = { avatar: true, size: false, diff: true, comment: true, time: 'timestamp', lang: 'fr', namespaces: { include: [], exclude: [] },   pages: [] }; // LastEdited END