MediaWiki:Group-user.js: Difference between revisions

31.10.2025 Prusac | 17.11.2025

No edit summary
No edit summary
Line 3: Line 3:
var naslov = document.title;
var naslov = document.title;


if (naslov === 'Kreiranje novog članka - MelanyWiki') alert('novi clanak');
if (naslov === 'Kreiranje novog članka - MelanyWiki') {
  document.getElementsByClassName('mw-inputbox-createbox cdx-text-input__input').focus();
}

Revision as of 15:45, 31 October 2025

/* Any JavaScript here will be loaded for registered users only */

var naslov = document.title;

if (naslov === 'Kreiranje novog članka - MelanyWiki') {
  document.getElementsByClassName('mw-inputbox-createbox cdx-text-input__input').focus();	
}