User:AbsoluteWissen/monobook.js

// Fix missing history tab function addPageHistory { var pageHistory = document.getElementById('mm-page-history'); var outerUl = document.querySelector('.pBody > ul'); var listItems = outerUl.querySelectorAll('li'); var targetIndex = 4;

if (pageHistory && outerUl && listItems.length >= targetIndex) { pageHistory.className = 'mw-list-item'; outerUl.insertBefore(pageHistory, listItems[targetIndex]); } else { setTimeout(addPageHistory, 100); } }

addPageHistory;