User:Emperor Jarjarkine/global.js

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

importScriptPage('MediaWiki:Gadget-purgebutton.js', 'starwars'); importScriptPage('MediaWiki:Gadget-ajaxundo.js', 'starwars'); importScriptPage('MediaWiki:Gadget-inactiveusers..js', 'starwars'); importArticles({    type: 'script',     articles: [         'u:dev:Quick_Management/code.js'     ] });

importScriptPage('WHAM/code.2.js', 'dev'); importScriptPage('ContribsLink/code.js', 'dev'); importArticles( {    type: 'script',     articles: [         // ...         'u:dev:LastEdited/code.js',         // ...     ] } ); importArticles({   type: 'script',    articles: [        // ...        'w:c:dev:ReferencePopups/code.js',        // ...    ] });

/** * 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')               ), $('').attr({               'id': 'ct'            }).append(                $('').attr({ 'href': 'http://starwars.wikia.com/wiki/Wookieepedia:Consensus_track' }).text('CT')               ),

$('').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);

//