User:DannyS712/common.js

// if ( mw.config.get( 'wgNamespaceNumber' ) === 14 && mw.config.get( 'wgRelevantArticleId' ) === 0 ) { var link = mw.util.addPortletLink( 'p-cactions', ,  ); $( link ).click( function ( e ) {		e.preventDefault;		mw.loader.using( 'mediawiki.api', function { new mw.Api.create(					mw.config.get( 'wgPageName' ),					{ summary: 'Creating new category with ' },					''				).then(					function {						location.reload;					}				); }		);	} ); } //