JavaScript is not working on Test Wiki4 Wiki. Why?
JavaScript is not working on Test Wiki4 Wiki. Why?
It's due to the last piece of code in your MediaWiki:Common.js:
$("#UserProfileMasthead .masthead-info hgroup h2").style.display = "none";
The $ is used by jQuery, while the node.style.display property belongs to actual nodes- not to the returned elements array which jQuery uses. Therefore, you should replace your code with one of the following (there are other potions, but these would work just well):
var mastheadH2 = document.querySelector("#UserProfileMasthead .masthead-info hgroup h2"); if (mastheadH2) { mastheadH2.style.display = "none"; }
$("#UserProfileMasthead .masthead-info hgroup h2").css("display", "none");
$("#UserProfileMasthead .masthead-info hgroup h2").hide();
However, note that removing the AKA text for users might not be very good per the customization policy, so you should probably not use that (at least not site-wide).