User:Mihawk Moha/global.js

//ça va $(function {    $(' OPE  ').insertBefore('.wds-global-navigation__search');    $(' DEV  ').insertBefore('.wds-global-navigation__search');    $(' IMG  ').insertBefore('.wds-global-navigation__search');    $(' Global.js  ').insertBefore('.wds-global-navigation__search'); });

var qtEnableUserPageOverwrite = true; var qtUserPageTemplate = ''; importArticles({   type: 'script',    articles: [        'w:dev:QuickCreateUserPage/code.js',        'u:dev:DupImageList/code.js',        "u:dev:MassEdit/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:PortableCSSPad/code.js',        'u:dev:MediaWiki:Rollback/code.js',        'u:dev:MediaWiki:MultiUpload/code.js',        'u:dev:MediaWiki:MassBlock/code.js',        'u:dev:MediaWiki:!kick/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:EditBio/code.js', 'u:kocka:MediaWiki:AjaxThreadDelete/code.js', 'u:dev:MediaWiki:WorkingMoreUsersCount.js', 'u:dev:ShowUserGroups.js', 'u:dev:SkinSwitchButton/code.js', 'u:dev:UserCheck/code.js', 'u:dev:WhatLinksHere/code.js', "u:dev:UsernameAvailability/code.js", 'u:dev:AjaxCommentDelete/code.js', 'u:dev:QuickComments/code.js' ] });

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

importScriptPage('MediaWiki:ViewRemoved/code.js', 'dev');

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

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

// 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

/** * Ajoute les contributions et la liste de suivi au menu déroulant des comptes utilisateurs * Auteur original inconnu * * Autres auteurs : Ryan PM et Cqm de RuneScape Wiki + Hulothe */ (function ($, console, document, rswiki) {   'use strict';    // make sure the gadgets property exists    rswiki.gadgets = rswiki.gadgets || {};    rswiki.gadgets.addContribs = function  {        $('#AccountNavigation > li > .subnav > li:first-child').after( $('').attr({               'id': 'MyContribs'            }).append(                $('').attr({ 'href': '/wiki/Special:MyContributions' }).text('Contributions')           ), $('').attr({               'id': 'Liste'            }).append(                $('').attr({ 'href': 'http://starwars.wikia.com/wiki/Special:WikiActivity' }).text('Wook')               ), $('<li/>').attr({               'id': 'ct'            }).append(                $('').attr({ 'href': 'http://starwars.wikia.com/wiki/Wookieepedia:Consensus_track' }).text('CT')               ), $('<li/>').attr({               'id': 'TC'            }).append(                $('').attr({ 'href': 'http://starwars.wikia.com/wiki/Wookieepedia:Trash_compactor' }).text('TC')           ) );   };    $(rswiki.gadgets.addContribs); }(this.jQuery, this.console, this.document, this.rswiki = this.rswiki || {})); var nom_utilisateur_courant = mw.config.get( 'wgUserName' ); var lien_page_discu = "/wiki/User_talk:"+nom_utilisateur_courant; $('.sprite.close-notification + a:contains("de nouveaux messages")').attr('href',lien_page_discu); $('a[data-id*="mytalk"]').attr('href',lien_page_discu);