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

console.log(mw.util.wikiUrlencode("Striking Gold #37")); location.hash = mw.util.wikiUrlencode("Striking Gold #37"); }   })); });

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 !== "") { $(".tabber .tabbernav a").first.siblings.filter(function {           alert(loc + "\n" + mw.util.wikiUrlencode($(this).attr("Title")));            return (mw.util.wikiUrlencode($(this).attr("Title")) == loc);        }).click; } });