Board Thread:Support Requests - Getting Technical/@comment-1251315-20160128084958

Hi there.

I am trying to add some javascript to a wiki whereby a small line of text is appended after an infobox that redirects them to the main article (our infoboxes are in a separate namespace due to their length).

However, whenever I make use of such basic javascript functions like Splice and Split on the wgPageName, I get annoying errors in the console, simply stating that the function is not defined... which makes no sense considering that these are basic functions available in base Javascript.

This is the code I'm trying to use: if(mw.config.get("wgNamespaceNumber") === 112) { var name = slice.wgPageName(8); var title = name.replace("_"," "); $("div#mw-content-text > table.mobile-ibox").after(" Return to "+title+" "); } If it helps any, I use the latest version of Chrome, which I very much doubt has removed access to such a basic function. Any advice would be appreciated, thanks. :)  