User:Technical 13/common.js

This is an old revision of this page, as edited by Technical 13 (talk | contribs) at 14:30, 12 March 2013 (Replace to Numeric character references to avoid double replace). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
/* Visual name change mechanic so that I see "ShoeMaker" as I prefer while being able to keep my "Technical_13" login. */
$('h1[id^="firstHeading"]').each(function() {
    this.innerHTML = this.innerHTML.replace("User:Technical 13", "User:ShoeMaker");
});
$('a[href^="/wiki/User:Technical_13"]').each(function() {
    this.innerHTML = this.innerHTML.replace("Technical 13", "ShoeMaker");
})

/* Virtual signature */
$('span[class="banned"]').each(function() {
    this.innerHTML = this.innerHTML.replace("T13", "ShoeMaker");
    this.innerHTML = this.innerHTML.replace("C", "Contributions");
    this.innerHTML = this.innerHTML.replace("M", "Message");
    this.href = this.href.replace("/wiki/User:Technical_13/Signature", "");
    this.title = this.title.replace("User:Technical 13/Signature", "");
    this.innerHTML = this.innerHTML.replace(" • Click to learn how to view this signature as intended", "");
})