Board Thread:General Coding Help/@comment-26923519-20170525172019/@comment-3279487-20170526123745

Copy and paste it on a mediawiki page of your choice and then add the same page to ImportJS. But yes, using the same page is the quicker solution, although I would call it just "MediaWiki:Common.js/slider.js".