User:Penguin-Pal/wikia.js/sandbox/chatEncoder.js

/* experimental chat user links encoder */

document.querySelector("#UserStatsMenu").onload = var userRailContribs = document.querySelector("#UserStatsMenu .actions .contribs a"), userRailTalk = document.querySelector("#UserStatsMenu .actions .talk-page a"); userRailContribs.href = "http://clubpenguin.wikia.com/wiki/Special:Contributions/" + encodeURIComponent(userRailContribs.href.split("http://clubpenguin.wikia.com/wiki/Special:Contributions/")[1]); userRailTalk.href = "http://clubpenguin.wikia.com/wiki/User_talk:" + encodeURIComponent(userRailTalk.href.split("http://clubpenguin.wikia.com/wiki/User_talk:")[1]);