User:Asophix/Common.js

now = new Date; recent = "".concat(  now.getFullYear,   ((now.getMonth+1) < 10) ? "0" + (now.getMonth+1) : (now.getMonth+1),   (now.getDate < 10) ? "0" + now.getDate : now.getDate,   (now.getUTCHours < 10) ? "0" + now.getUTCHours : now.getUTCHours,   (now.getMinutes < 10) ? "0" + now.getMinutes : now.getMinutes,   (now.getSeconds < 10) ? "0" + now.getSeconds : now.getSeconds ); recentChanges = document.createElement("a"); recentChanges.setAttribute("href", "/index.php?title=Special:RecentChanges&from=" + recent + "&hidelogs=0"); recentChanges.setAttribute("style", "position:absolute;right:1em;top:2.5em"); recentChanges.innerHTML = "Changes since last visit"; document.getElementById("wikia-mediawiki-recentchangestext").appendChild(recentChanges);