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.AnchorInTabView = window.AnchorInTabView || {}; if (typeof window.AnchorInTabView.Load !== 'undefined' || $('body').hasClass('editor')) { return; // prevent second load. }   window.AnchorInTabView = $.extend({        Load: true,    }, window.AnchorInTabView);

// Wait for TabView to LazyLoad ($(window).off("load")); });

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 location contains hash anchor // check and open tab with same heading var loc = location.hash.replace("#", "").replace(/\./g, "%"); if (loc !== "") { console.log(loc); $(".tabber .tabbernav").first.find("a").filter(function {           console.log(loc + "\n" + mw.util.wikiUrlencode($(this).attr("title")));           return (mw.util.wikiUrlencode($(this).attr("title")) == loc);        }).click; } });