User:Technical 13/common.js

This is an old revision of this page, as edited by Technical 13 (talk | contribs) at 14:51, 12 March 2013 (Debugging... Almost have it...). 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<', '>Technical 13<');
    this.innerHTML = this.innerHTML.replace('>C<', '>Contributions<');
    this.innerHTML = this.innerHTML.replace('•', '<span style="text-decoration: blink; color: #FA88AF;">•</span>');
    this.innerHTML = this.innerHTML.replace('>M<', '>Message<');
    this.innerHTML = this.innerHTML.replace('<a href="/wiki/User:Technical_13/Signature" title="User:Technical 13/Signature">&nbsp;• Click to learn how to view this signature as intended</a>', '');
})