User:Finnusertop/lastmod.js

//This script moves the "This page was last edited on" line from the footer to the top of the page. //To install, add the following line to your Special:MyPage/common.js: importScript( 'User:Finnusertop/lastmod.js'); // User:Finnusertop/lastmod.js

// main function function lastmodattop { var lastmod = document.getElementById('footer-info-lastmod'); var bc = document.getElementById('bodyContent'); if (lastmod != null) { bc.insertBefore(lastmod, bc.childNodes[0]); } }

// run after HTML is parsed $( document ).ready( lastmodattop );