Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
//Adds a toolbox link to open Find Link by User:Edward

$.when(
    $.ready,
    mw.loader.using("mediawiki.util", "mediawiki.config")
).then( function() {
	if (mw.config.get('wgNamespaceNumber') == '0') {
		var url = 'https://edwardbetts.com/find_link/' + encodeURIComponent(mw.config.get('wgPageName'));
    	mw.util.addPortletLink( 
    	    "p-tb", //target tab
    	    url,
    	    'Find Link', //link text
    	    'Find possible Links for this page'
    	);
	}
});