Board Thread:Support Requests - Getting Technical/@comment-25793496-20140621163544/@comment-5454372-20140622042512

I'd actually like some help too, if that's alright with you lynque :P

I'm wondering if the following combination would make a working button on Wikia:

The Wikitext in the article: Insert text for button to display username of reader

Javascript: function UserNameReplace { if(typeof(disableUsernameReplace) != 'undefined' && disableUsernameReplace || wgUserName == null) return; $("span.insertusername").html(wgUserName); } addOnloadHook(UserNameReplace);

Edit: apparently, that DOESN'T work the way I want. Back to thd drawing board...

That's just using the javascript in the link combined with something I saw on w3schools though -- not too sure how correct that is. I'm also wondering if there's a way of putting the "onclick" bit into the javascript instead of the HTML (saw something about ".object", but I've yet to get my head around that one).