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. */
window.onload = function() {
$(function() {
var title = document.title;
// Get the current document title
var newTitle = title.replace(/^.*?:\s*/, "");
var currentTitle = document.title;

// Remove the namespace part (if exists) from the title
var newTitle = currentTitle.replace(/^.*?:\s*/, "");

// Set the updated title
document.title = newTitle;
document.title = newTitle;
};
});

Revision as of 02:54, 1 January 2025

/* Any JavaScript here will be loaded for all users on every page load. */
$(function() {
    // Get the current document title
    var currentTitle = document.title;

    // Remove the namespace part (if exists) from the title
    var newTitle = currentTitle.replace(/^.*?:\s*/, "");

    // Set the updated title
    document.title = newTitle;
});