User:Diegodlh/Web2Cit/loader.js

// a "gadget loader" - a small gadget that tells VE to load the real gadget // once VE is activated by the user // https://www.mediawiki.org/wiki/VisualEditor/Gadgets#Deployment mw.loader.using( 'ext.visualEditor.desktopArticleTarget.init', function {  //console.log("Web2Cit script will load...");  return mw.loader.getScript('/w/index.php?title=User:Diegodlh/Web2Cit/script.js&action=raw&ctype=text/javascript'); });