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); // if location contains hash anchor check and open tab with same title var loc = location.hash.replace("#", "").replace(/\./g, "%"); if (loc !== "") { alert("Hash:" + loc); $(".tabs a").filter(function {           alert("Tab:" + loc); // + "\n" + $(this).attr("innerText")); return (mw.util.wikiUrlencode($(this).attr("innerText")) == loc); }).click;   } });

/* 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; }   } });