User:Stephan222/global.js

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

(function($, mw, config){   if (mw.config.get('skin') == "oasis" || mw.config.get('skin') == "wikia"){        if ($('.WikiaRail').length){ // If the rail is present...            $('.WikiaRail').delegate('*', 'DOMNodeInserted', function(event){ // ...create the Photos module after lazy-loading. if($('.ChatModule').length && !$('.LatestPhotosModule#LatestPhotosModule').length){ // Only add the module once. if (typeof el == "undefined"){ // Only load the photos once. var el = $(' '); el.load("/Special:NewFiles/" + (config.count || "5") + " #gallery-", function{                           $('.ChatModule').after(function{ var PhotosModuleHTML = ' Photos ' + '' + '' + 'Add a Photo' + '' + ' ' +                                       '  ' +                                        '  ' +                                    ' ' +                                    '' + ' ' +                                       ' ' +                                    ' ' +                                    'See more &gt;'; return $(' ', {                                   "class": "LatestPhotosModule module",                                    "id": "LatestPhotosModule",                                    html: PhotosModuleHTML                                }); });                           $('#LatestPhotosModule .carousel-container > div').append($('#gallery-', el)); // Create the carousel...                            $('#LatestPhotosModule .wikia-photogallery-add').remove;                        }); // That button is unneccessary, so I'll just remove it... }               }            });        }    } })(this.jQuery, this.mediaWiki, window.module);