User:Gawdl3y/Scripts/pageTitle.js

function setPageTitle(title, kot, bt) { var currentTitle = document.getElementsByTagName('h1')[0]; currentTitle.innerHTML = (kot ? currentTitle.innerHTML + title : title); if(bt) document.title = title; }