Manual:$wgUseSiteJs

Details
Use the site's Javascript page: MediaWiki:Common.js?