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',        'u:dev:Quick_Management/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' );

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

if ((wgAction == 'submit' || wgAction == 'edit') && mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://img2.wikia.nocookie.net/__cb1408628901/common/avatars/thumb/f/ff/4572079.png/20px-4572079.png", "speedTip": "Create user page", "tagOpen": "", "tagClose": "", "sampleText": ""}; }

importScriptURI('https://internal.wikia-inc.com/index.php?title=MediaWiki:ForcePreview.js&action=raw&ctype=text/javascript');