User:Pyrrhus/common.js

alert(mw.config.get( 'wgPageName' ));