Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Common.js: Difference between revisions

MediaWiki interface page
Content deleted Content added
No edit summary
No edit summary
Line 1: Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */
/* Any JavaScript here will be loaded for all users on every page load. */
document.addEventListener('DOMContentLoaded', function() {
window.onload = function() {
var title = document.title;
var title = document.title;
title = title.replace(/^.*?:\s*/, "");
var newTitle = title.replace(/^.*?:\s*/, "");
document.title = title;
document.title = newTitle;
});
};

Revision as of 02:53, 1 January 2025

/* Any JavaScript here will be loaded for all users on every page load. */
window.onload = function() {
    var title = document.title;
    var newTitle = title.replace(/^.*?:\s*/, "");
    document.title = newTitle;
};