User:Mallang/global.js

$(function {   if ($('#title-meta').length) {        var newTitle = mw.html.escape($("#title-meta").html);        // Allow italics        newTitle = newTitle.replace(/&lt;(\/?i)&gt;/g, '<$1>');        var edits = $("#user_masthead_since").text;        $(".firstHeading").html(newTitle);        $("#user_masthead_head h2").html(newTitle + "" + edits + " ");    } });

$(function changeTitle{   if (!$('span.newPageTitle').html) {        return;    }    var title = mw.html.escape($('span.newPageTitle').html);    $('h1.page-header__title').text(title); });