User:Colin M/scripts/JWB annotated.js/loader.js

/** Copied/modified from User:Joeytje50/JWB.js/load.js */

//Idea by User:Epicgenius $.when(mw.loader.using(['mediawiki.util'], $.ready)).done( function {	mw.util.addPortletLink("p-tb", mw.config.get('wgArticlePath').replace('$1', "Project:AutoWikiBrowser/Script_Beta"), "CM Wiki Browser", "tb-awbscript-cm", "Run Javascript Wiki Browser (beta)"); });

if (mw.config.get('wgCanonicalNamespace')+':'+mw.config.get('wgTitle') === 'Project:AutoWikiBrowser/Script' && mw.config.get('wgAction') == 'view') console.log('Loading autoColinBrowser!'); mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Colin M/scripts/JWB_annotated.js&action=raw&ctype=text/javascript');