You could probably hack around it by using one of the
many hooks in the
page rendering stack to add the JS module on the pages where it's not
already there, but before doing so it's worth thinking about the reason why
it was removed in the first place.
Thank you HM. In our case, we are using a script for several purposes (in a private wiki
behind a firewall):
* Automatically check the "keep me logged in for 30 days" checkbox.
* Remove any trailing "(a)companyname.com" from the username. Users in our company
are accustomed to logging in this way on their Windows boxes, and we'd get several
support calls per week from people who "can't log into the wiki" because
they were adding @companyname.com onto their wiki usernames.
$wgOut->addScriptFile. The JS is:
$input = $('#wpName1', this);
Is there a more secure way to do what we need on the login page (without modifying core