User:DannyS712/Meta.js

// Install with: // // or with //  // // If forking this script, please note my contributions / give me credit // $(function { const MetaLog = {}; MetaLog.config = {	name: 'View meta log.js',	version: 1.1,	debug: false };

mw.loader.using( 'mediawiki.util', function {    $(document).ready( function  { var page = mw.config.get('wgCanonicalSpecialPageName'); if (page && page === "Log") { var target = document.getElementById("ooui-php-3").value; if (MetaLog.config.debug) { console.log( target ); }   		mw.util.addPortletLink(    			'p-cactions',    			'//meta.wikimedia.org/wiki/Special:Log?page=' + target + '@' + mw.config.get( 'wgDBname'),    			'View meta log',    			'ca-meta-link',    			'View logs on meta'    		); }   } ); } ); }); //