MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
Tags: Undo Reverted |
No edit summary Tag: Manual revert |
||
| Line 14: | Line 14: | ||
'white-space:nowrap;'; | 'white-space:nowrap;'; | ||
title.style.color = | title.style.color = '#ffffff'; | ||
header.appendChild(title); | header.appendChild(title); | ||
}); | }); | ||
Revision as of 23:28, 24 October 2026
/* Any JavaScript here will be loaded for all users on every page load. */
$(function () {
var header = document.getElementById('mw-head');
if (!header) return;
var title = document.getElementById('p2p-site-title') ||
document.createElement('div');
title.id = 'p2p-site-title';
title.textContent = 'P2P Master AI - OSRS Bot Wiki';
title.style.cssText =
'position:absolute; top:12px; left:15px; z-index:5;' +
'font-size:14px; font-weight:bold; line-height:1.4;' +
'white-space:nowrap;';
title.style.color = '#ffffff';
header.appendChild(title);
});