User:Hulothe/global.js

importArticles({   type: 'script',    articles: [        'u:dev:PortableCSSPad/code.js',        'u:dev:MiniComplete/code.js',        'u:dev:AjaxBatchDelete/code.js',        'u:wikimarks:Client.js',        'u:dev:View_Source/code.js',        'u:fr.harrypotter:Mediawiki:Gadget-Contributions.js',        'u:dev:PageMakerPro/code.js',        'u:dev:QQX/code.js',        'u:dev:PurgeButton/code.js',        'u:dev:Message/code.js',        'u:dev:AutoEditDropdown/code.js'     ] });

//Edit count tab $(function {   var loc = window.location.href;    var username = (wgTitle == "Contributions") ? loc.substring(loc.lastIndexOf("/")+1) : wgTitle;    $('.tabs-container > ul.tabs').append('Editcount'); });

/* Wikimarks */ addOnloadHook( function {    $( '.WikiNav .wikimarks-logo' ).html( 'Outils' ); } );

/* WHPAS */ $( '.GlobalNavigation' ).append( 'WHPAS' ).append( 'HP' ).append( 'COM' ).append( '<a id="whpas" href="/wiki/Special:Chat?useskin=wikia" target="_blank">Tchat</a></li>' );

//Special CSS controller jQuery(function ($) {   if (mw.config.get('wgCanonicalSpecialPageName') === 'CSS') {        $(".css-editor").prepend(" 100% ");    };    var countcss = 0;    $("#buttom-css").click(function  { countcss += 1; if (countcss == 1) { $(this).text("Default"); $(".css-editor-wrapper").css("width", "100%"); $(".css-side-bar").css("display", "none"); $(".ace_gutter").css("display", "none"); $(".ace_scroller").css("left", "0px"); }       if (countcss == 2) { $(this).text("100%"); $(".css-editor-wrapper").css("width", "auto"); $(".css-side-bar").css("display", "block"); $(".ace_gutter").css("display", "block"); $(".ace_scroller").css("left", "49px"); countcss = 0 }   }); });

var lien = '<a id="toolsfactory" href="/wiki/Special:WikiFactory">Factory</a></li>'; var lien2 = '<a href="http://community.wikia.com/">C.C.</a></li>'; var lien3 = '<a href="http://wlb.wikia.com/">WLB</a></li>'; $('.toolbar > ul.tools').append(lien).append(lien2).append(lien3);

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

/* var specialpages = [ "Special:BrokenRedirects", "Special:DoubleRedirects", "Special:DeadendPages", "Special:BrokenRedirects", "Special:LonelyPages", "Special:UnusedFiles", "Special:UnusedTemplates" ]; if (specialpages.indexOf(mw.config.get('wgPageName')) !== -1) { $('#WikiaArticle').prepend('<textarea id="output-box" rows="10" cols="100"> '); if ("Special:UnusedFiles".indexOf(wgPageName) !== -1) { $('div.thumb img').each(function {       $('#output-box').append('File:'+$(this).attr('data-image-name')+'\n')}); } else { $('ol.special').find('li').each(function {       var text = $(this).find('a').first.text;        document.getElementById('output-box').value += text + '\n';}); } }
 * Display a list of text for certain special pages
 * Written by Shining-Armor
 * Added support for Special:UnusedFiles by Ozuzanna