Manual:$wgUseSiteJs

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