User:Rdb/monobook.js

function change_title { var restrictions = document.getElementById("restrictions"); var real_title_b = restrictions.getElementsByTagName("b")[0]; if (real_title_b) {   var real_title = real_title_b.innerHTML; restrictions.style.display = "none"; var headings = document.getElementsByTagName("h1"); var pattern = new RegExp("(^|\\s)firstHeading(\\s|$)"); for (i=0; i<headings.length; i++) { if (pattern.test(headings[i].className) ) { headings[i].innerHTML = real_title; }   }  } }

window.onload = change_title;