Only autoload if viewing or editing the current revision of the page

Also add AFCH.getParam wrapper for mw.util.getParamValue.