mw.hook('wikipage.content').add(function() {
var personalTools = document.getElementById('p-personal');
if (personalTools) {
var ul = personalTools.querySelector('ul');
var sandboxLi = ul.querySelector('li#pt-sandbox');
if (sandboxLi) {
var todoesLink = document.createElement('li');
todoesLink.id = 'pt-todoes';
todoesLink.innerHTML = '<a href="https://wikines.com/en/Special:MyPage/Todoes">Todoes</a>';
sandboxLi.insertAdjacentElement('afterend', todoesLink);
}
}
});