MediaWiki:Gadget-refToolbar.js

//TODO: Should work online by URI if (( wgAction == 'edit' || wgAction == 'submit' ) && ( typeof refToolbarInstalled == 'undefined' )) { importScript('MediaWiki:RefToolbar_2.0.js'); if( mw.user.options.get('usebetatoolbar') && mw.user.options.get('usebetatoolbar-cgd') ) { importScript('MediaWiki:RefToolbar.js'); } else if( mw.user.options.get('usebetatoolbar') ) { importScriptURI("//en.wikipedia.org/w/index.php?title=MediaWiki:RefToolbarNoDialogs.js&action=raw&ctype=text/javascript"); } else { importScriptURI("//en.wikipedia.org/w/index.php?title=MediaWiki:RefToolbarLegacy.js&action=raw&ctype=text/javascript"); } refToolbarInstalled = true; }