User:Effan R/common.js

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:MassEdit/code.js',        'u:dev:MediaWiki:AjaxDiff/code.js',    ] });

/* require(['wikia.window', 'jquery', 'mw'], function (window, $, mw) {

window.AnchorInTabber = window.AnchorInTabber || {}; if (typeof window.AnchorInTabber.Load !== 'undefined' || $('body').hasClass('editor')) { return; // prevent second load. }   window.AnchorInTabber = $.extend({        Load: true,    }, window.AnchorInTabber); // if tabber contain inside infoboxes with collapsible sections // when section on active tab collapsed or expanded // then automatically synchronously collapse or expande sections with same name on nonactive tabs if (window.AnchorInTabber.SynchroInfoboxes) { var collapsibleGroups = $(".tabber .pi-collapse"); collapsibleGroups.each(function(index) {           collapsibleGroups.eq(index).find(".pi-header:first").click(function { collapsibleGroups.not($(this).parent).has(".pi-header:first:contains('" + $(this).text + "')").toggleClass("pi-collapse-closed"); });       });    }    // if location hash anchor contain a non ascii-characters, decode it and open tab with same title if (window.AnchorInTabber.NonASCIIAnchor) { var loc = location.hash.replace("#", "").replace(/\./g, "%"); if (loc !== "") { $(".tabber .tabbernav a").filter(function {               return (mw.util.wikiUrlencode($(this).attr(HeaderTitle)) == loc);            }).click; }   } });