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,        NonASCIIAnchor: true,    }, window.AnchorInTabber); // 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 {               alert(loc + "\n" + mw.util.wikiUrlencode($(this).attr("Title")));                return (mw.util.wikiUrlencode($(this).attr("Title")) == loc);            }).click; }   } });