User:Fngplg/global.js

//tracker console.log('doc.readystate:', document.readyState); var ngTrackerNew, ngTrackerOld, ngTrackerBackup; require(['wikia.tracker'], function(tracker){   /*if (!(ngTrackerOld)) {        ngTrackerOld = $.extend(true, {}, tracker);        //console.log('tracker', tracker.buildTrackingFunction, Window.Wikia.Tracker.ngTrackerOld.buildTrackingFunction);    }*/    ngTrackerOld = $.extend(true, {}, tracker);    //ngTrackerNew = Wikia.Tracker;    tracker.buildTrackingFunction = function  {        Window.Wikia = Window.Wikia || {};        Window.Wikia.Tracker = $.extend(true, {}, ngTrackerBackup);        console.log('tracker.btf', arguments);        tracker.trackerNew = ngTrackerOld.buildTrackingFunction(arguments);        var ntrackerNew = function  {            console.log('ntracker', (arguments[0] || {}).label, arguments);            return tracker.trackerNew(arguments);        };        Window.Wikia = Window.Wikia || {};        Window.Wikia.Tracker = $.extend(true, {}, ngTrackerBackup);        return ntrackerNew; };   ngTrackerBackup = $.extend(true, {}, tracker); Window.Wikia = Window.Wikia || {}; Window.Wikia.Tracker = tracker; }); //tracker

window.BackToTopSpeed=500; window.BackToTopStart=1;

if (wgSiteName !== 'Borderlands Wiki') { window.nQuoteSettings = window.nQuoteSettings || {}; //window.nQuoteSettings.debug = false; window.nQuoteSettings.useQuoteTemplate = false; window.nQuoteSettings.quoteStyle = 'border-width:1px;border-style:ridge;'; mw.loader.load('http://ru.borderlands.wikia.com/index.php?title=MediaWiki:Common.js/Quotes.js&action=raw&ctype=text/javascript'); mw.loader.load('http://dev.wikia.com/index.php?title=MediaWiki:LinkPreview/code.js&action=raw&ctype=text/javascript'); } //window.pPreview = window.pPreview || {}; //pPreview.RegExp = pPreview.RegExp || {}; //pPreview.RegExp.dtag = new RegExp('(.*)','gm'); //window.pPreview.debug = true; //importArticles({type: 'script', articles: ['u:dev:deadvideo/code.js']}); /*importArticles({   type: "style",    articles: ["u:dev:LinkPreview/code.css"] });*/ //mw.loader.load('http://dev.wikia.com/index.php?title=MediaWiki:deadvideo/code.js&action=raw&ctype=text/javascript'); mw.loader.load('http://dev.wikia.com/index.php?title=MediaWiki:AjaxRC/code.js&action=raw&ctype=text/javascript'); //mw.loader.load('http://dev.wikia.com/index.php?title=MediaWiki:StarRatings/code.js&action=raw&ctype=text/javascript'); mw.loader.load('http://dev.wikia.com/index.php?title=MediaWiki:ViewRemoved/code.js&action=raw&ctype=text/javascript'); /*,{   type: "script", articles:["u:dev:LinkPreview/code.js"] });*/ //$.getScript('http://ru.borderlands.wikia.com/index.php?title=MediaWiki:Common.js/pagePreview.js&action=raw&ctype=text/javascript'); //mw.loader.load('http://ru.borderlands.wikia.com/index.php?title=MediaWiki:Common.js/pagePreview.js&action=raw&ctype=text/javascript'); //mw.loader.load('http://ru.borderlands.wikia.com/index.php?title=MediaWiki:Common.js/emo.js&action=raw&ctype=text/javascript'); //mw.loader.load('https://en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-popups.js&action=raw&ctype=text/javascript'); //mw.loader.load('https://en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-navpop.css&action=raw&ctype=text/css', 'text/css'); /* importScriptPage('BackToTopButton/code.js', 'dev'); //console.log('global'); //switch code editor to classic mode /* importArticles({ type: 'script', articles: [ 'u:dev:MediaWiki:CodeEditorSwitch/code.js' ] });