MediaWiki:Common.js

// 01:17, 17 January 2020 (UTC) (UTC)

// AUTO-REFRESH RECENT CHANGES AND WIKI-ACTIVITY window.AjaxRCRefreshText = 'Auto-refresh'; window.AjaxRCRefreshHoverText = 'Automatically refresh the page'; window.ajaxPages = ["Special:RecentChanges"]; // END AUTO-REFRESH

// Create the "dev" namespace if it doesn't exist already: window.dev = window.dev || {};

// Create the sub-namespace for this addon and set some options: window.dev.editSummaries = { select: 'Template:Stdsummaries' };

// ************************************************* // Pagetitle rewrite // // Rewrites the page's title, used by Template:Title // ************************************************* $(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); });

/* END PAGETITLE */