Update script to work on all mediawiki sites