User:TimeShade/global.js

/* IMPORT */

importScriptPage('WikiaNavBarHider/code.js', 'dev'); importScriptPage('WHAM/code.2.js', 'dev'); importScriptPage('AjaxDiff/code.js', 'dev' ); importScriptPage('QuickComments/code.js', 'dev' ); importScriptPage('QQX/code.js', 'dev'); importScriptPage('PortableCSSPad/code.js', 'dev'); importScriptPage('ContribsLink/code.js', 'dev'); massCategorizationDelay = 1000; importScriptPage('MassCategorization/code.js', 'dev'); importScriptPage('SkinSwitchButton/code.js', 'dev');

importArticles({ type:'script', articles:[ 'w:c:dev:RevealAnonIP/code.js', //Reveal Anonymous User IP  'w:c:dev:HideRail/code.js',  'w:c:dev:QuickTools/advanced.js',  'u:dev:MiniComplete/code.js',  'u:dev:FastDelete/code.js',  'u:dev:UserRightsRecord/code.js',  'u:dev:Quick_Management/code.js'     ] });

/* End Imports */

//var NewFilesModuleCompact = 1; //optional compact mode if ($('#WikiaRail').length) { //only on pages where the rail is present $('#WikiaRail').bind('DOMNodeInserted', function(event) { //fires after lazy-loading takes place.   if ($('.ChatModule').length && !$("#NewFilesModule").length) { // Only add it once      if (typeof $temp == "undefined") { // Only load it once        $temp = $(' '); // this line, and the next, originate from http://dev.wikia.com/wiki/AjaxRC/code.js <3        $temp.load("/Special:NewFiles/13" + " #gallery-", function  { $('.ChatModule').after(" New FilesUpload "); if (typeof NewFilesModuleCompact != "undefined" && NewFilesModuleCompact) { $('#gallery-', $temp).html($('#gallery-', $temp).html.replace(/\/scale-to-width\/\d*\?/g, "/scale-to-width/106?")); $("#NewFilesModule").addClass("compact"); }         $("#NewFilesModule").append($('#gallery-', $temp)); $("#NewFilesModule .wikia-photogallery-add").remove; delete $temp; //delete it, in case the rail is wiped after this point. });     }    }  });  //end of DOMNodeInserted block $('head').append('\n#gallery- { height:452px; overflow-y:auto; clear: both; text-align:center; padding-bottom: 5em;}\n#NewFilesModule .gallery-image-wrapper { top: 0 !important; height: auto !important; border:none; }\n#NewFilesModule.compact .gallery-image-wrapper { width: auto !important; }\n#NewFilesModule .thumb { height:auto !important; }\n#NewFilesModule .wikia-gallery-item { margin: 1px !important; padding: 0 !important; height: auto !important; border: none !important; }\n#NewFilesModule.compact .wikia-gallery-item { width: auto !important; }\n#NewFilesModule .wikia-gallery-item .lightbox-caption { display: none; }\n#NewFilesModule .wikia-gallery-item:hover .lightbox-caption { display: block; }\n#NewFilesModule.compact .wikia-gallery-item:hover .lightbox-caption { display: none; }\n#NewFilesModule h1 {margin: 0 2em 0 0;}\n#NewFilesModule h1 a:first-child {color:inherit;}\n#NewFilesModule img { display: block; }\n.wikia-gallery-item .gallery-image-wrapper a { width: auto !important; height: auto !important; }\n.wikia-gallery-item .gallery-image-wrapper a.image-no-lightbox { line-height: normal; display: block; padding: 1em; }\n '); }

/**List users**/ var username = mw.config.get("wgUserName"); $('#AccountNavigation > li > .subnav > li:first-child').after(   $('').append('List users')  ); }) (this.jQuery, this.mediaWiki); /**Link to sig**/ var username = mw.config.get("wgUserName");  $('#AccountNavigation > li > .subnav > li:first-child').after( $('').append('Signature') ); }) (this.jQuery, this.mediaWiki);
 * (function($, mw) {
 * (function($, mw) {

/**Link to personal JS**/ var username = mw.config.get("wgUserName"); $('#AccountNavigation > li > .subnav > li:first-child').after(   $('').append('Personal JS')  ); }) (this.jQuery, this.mediaWiki);
 * (function($, mw) {

/**Link to personally design monobook design**/ var username = mw.config.get("wgUserName"); $('#AccountNavigation > li > .subnav > li:first-child').after(   $('').append('Monobook CSS</a>')  ); }) (this.jQuery, this.mediaWiki);
 * (function($, mw) {