User:Hulothe/global.js

// our config is stored in an array window.lessConfig = []; // each target page needs separate configuration window.lessConfig.push( {   // this is the page that has the compiled CSS    target: 'MediaWiki:Common.css',    // this is the page that lists the LESS files to compile    source: 'MediaWiki:Common.css/less',    // these are the pages that you want to be able to update the target page from    // note, you cannot have more than one update button per page    load: [        'MediaWiki:Common.css',        'MediaWiki:Common.css/less'    ],    // this is the page that contains the comment header for the target page    // all other comments are stripped during compilation    header: 'MediaWiki:Css-header/common' } );

importArticles({   type: 'script',    articles: [        'u:dev:PortableCSSPad/code.js',        'u:dev:MiniComplete/code.js',        'u:dev:WHAM/code.js',        'u:dev:AjaxBatchDelete/code.js',        'u:dev:QuickTools/advanced.js',        'u:wikimarks:Client.js',        'u:dev:View_Source/code.js',        'u:fr.harrypotter:MediaWiki:Gadget-Contributions.js',        'u:dev:VisualSpellCheck/code.js',        'u:dev:PageMakerPro/code.js',        'u:dev:Code/code.js',        'u:dev:QQX/code.js',        'u:dev:CategoryRenameAuto-update/code.js',        'u:dev:Less/code.js'     ] });

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

//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'); });

//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 }   }); });