User:Effan R/common.js

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

/* mw.loader.load('https://meta.wikimedia.org/w/index.php?title=User:He7d3r/Tools/DebugModeToggle.js&action=raw&ctype=text/javascript');

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 !== "") { var loc2 = loc.replace(/\%([\da-f]{2})/gi, function(x) {           return String.fromCharCode(parseInt("0x" + x[1]));        });

console.log(loc + "\n"               + loc2 + "\n"                + mw.util.wikiUrlencode(loc2)                ); $(".tabber .tabbernav").first.find("a").filter(function {           return (mw.util.wikiUrlencode($(this).attr("title")) == loc);        }).click;

var target = "Striking_Gold_.233"; var elem = document.getElementById(target); if (elem !== null) { console.log(elem.id + " Found"); elem.scrollIntoView(true); }       else { console.log(target + "Not Found"); } //       location.hash = mw.util.wikiUrlencode("Striking Gold #3"); } });