FANDOM


//
CustomLinks = typeof CustomLinks !== "undefined" ? CustomLinks : {};
 
if (CustomLinks.preventDefault === true) {
 
// default disabled - remove preventDefault property and don't add default values
 
delete CustomLinks.preventDefault;
 
} else {
 
// adding default values - not disabled
 
CustomLinks.mw = "http://www.mediawiki.org";
 
CustomLinks.mediawikiwiki = "http://www.mediawiki.org";
 
CustomLinks.commons = "http://commons.wikimedia.org";
 
CustomLinks.wikimedia = "http://wikimediafoundation.org";
 
CustomLinks.wikipedia = "http://en.wikipedia.org";
 
}
 
$("body").on("DOMNodeInserted", ".Chat ul > li:not(.inline-alert)", function(el) {
 
$(el.target).find("a").each(function() {
 
var link = $(this).attr("href").substr(("http://" + location.hostname + "/wiki/").length).replace(new RegExp("^(" + Object.keys(CustomLinks).join("|") + "):", "i"), function(m) {
 
var nonColon = m.substr(0, m.length - 1).toLowerCase();
 
return CustomLinks[nonColon] + "/wiki/";
 
});
 
$(this).attr("href", link);
 
});
 
});
 
//

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.