User:Pecoes/global.js

//RTEInitMode = 'source';

if ({ oasis: 1, wikia: 1 }[mediaWiki.config.get('skin')]) { jQuery(function ($) {       "use strict";        if (!window.LightboxLoader || window.LightboxLoader.handleClickOverride) return;        window.LightboxLoader.handleClickOverride = window.LightboxLoader.handleClick;        window.LightboxLoader.handleClick = function (ev) {            console.log(ev.target);            if ($(ev.target).hasClass('video')) {                window.LightboxLoader.handleClickOverride.apply(this, arguments);            }        };        // href to File: page, but not for images that have the link= set, e.g.         $('a[data-image-name]')        .not('.link-internal')        .each(function  { var $this = $(this), e = encodeURIComponent($this.attr('data-image-name').replace(/ /g, '_')); $this.attr('href', '/wiki/File:' + e); });   }); }

var Sine, ajaxPages, InactiveUsers, RailgunConfig;

Sine = { sine: '' + String.fromCharCode(126) }; ajaxPages = ['Special:RecentChanges', 'Special:WikiActivity', 'Forum:Support_Requests', 'Admin_Forum:Technical_Help']; InactiveUsers = { debug: true };

importArticles({   type: 'script',    articles: [        'u:dev:Sine/code.js',        'u:dev:FastDelete/code.js',        'u:dev:AjaxUndo/code.js',        'u:dev:PurgeButton/code.js',        'u:dev:AjaxRC/code.js',        'u:dev:InactiveUsers/code.js',        'u:wikimarks:Client.js',        'u:community:User:Pecoes/diff.js'        //'u:dev:FloatingToc/code.js'        //,'u:dev:FixWantedFiles/code.js'        //,'u:pecoes:AutoCreate.js'        //,'w:c:pecoes:Demo2.js'        ,'u:preferences:MediaWiki:Demo.js'    ] });

RailgunConfig = { isDebug: true }; importScriptURI('http://railgunscript.wikia.com/wiki/MediaWiki:RailgunClient.min.js?action=raw&ctype=text/javascript&maxage=0&smaxage=0');

//$.getScript('//dev.wikia.com/wiki/FloatingToc/code.js?action=raw&ctype=text/javascript&maxage=0&smaxage=0');