User:FenrisAureus/portlet.js

//X TOOLS LINK if ( mw.config.get( 'wgCanonicalNamespace' ) === 'User' || mw.config.get( 'wgCanonicalNamespace' ) === 'User_talk') { mw.util.addPortletLink( // for how to use see: https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.util-method-addPortletLink	   'p-tb', //where: tools	    'https://xtools.wmcloud.org/ec/en.wikipedia.org/' + mw.config.get( 'wgRelevantUserName' ),//URL	    'X-Tools', //display name	    't-xtools', // id	    'x-tools', 	    null,		'#t-emailuser'	); } else { mw.util.addPortletLink( // for how to use see: https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.util-method-addPortletLink	   'p-tb', //where: tools	    'https://xtools.wmcloud.org/ec/en.wikipedia.org/FenrisAureus',//URL	    'X-Tools', //display name	    't-xtools', // id	    'x-tools', 	    null,		'#t-emailuser'	); } //Block log if ( mw.config.get( 'wgCanonicalNamespace' ) === 'User' || mw.config.get( 'wgCanonicalNamespace' ) === 'User_talk') { mw.util.addPortletLink( // for how to use see: https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.util-method-addPortletLink	   'p-tb', //where: tools	    'https://en.wikipedia.org/wiki/Special:Log?type=block&user=&page=' + mw.config.get( 'wgRelevantUserName' ) + '&wpdate=&tagfilter=&subtype=&wpFormIdentifier=logeventslist',//URL	    'Block log', //display name	    't-blocklog', // id	    'blocklog', 	    null,		'#t-xtools'	); } //Block log if ( mw.config.get( 'wgCanonicalNamespace' ) === 'User' || mw.config.get( 'wgCanonicalNamespace' ) === 'User_talk') { mw.util.addPortletLink( // for how to use see: https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.util-method-addPortletLink	   'p-tb', //where: tools	    'https://en.wikipedia.org/wiki/Special:UserRights/'+mw.config.get( 'wgRelevantUserName' ),//URL	    'View user groups', //display name	    't-usergroups', // id	    'usergroups', 	    null,		'#t-xtools'	); } //COMMON.JS mw.util.addPortletLink( // for how to use see: https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.util-method-addPortletLink   'p-tb', //where: tools    'https://en.wikipedia.org/wiki/User:FenrisAureus/common.js',//URL    'common.js', //display name    't-commonjs', // id    'common.js',     null,	'#t-emailuser' ); //SUBPAGES mw.util.addPortletLink ( 	'p-tb', 	mw.util.getUrl( 'Special:Prefixindex/' + mw.config.get( 'wgPageName' ) ),	'Sub-pages',	'tb-prefixindex',	'Sub-pages',	null,	null ); //HIDE STUFF $( '#t-recentchangeslinked' ).hide; //related changes $( '#t-whatlinkshere'      ).hide; //what links here $( '#t-specialpages'       ).hide; //special pages $( '#t-permalink'          ).hide; //permalink $( '#t-cite'               ).hide; //cite this page $( '#t-wikibase'           ).hide; //wikidata item $( '#t-citationbot'        ).hide; //expand citations $( '#t-mute' ).hide; // $( '#t-upload' ).hide; // $( '#n-portal' ).hide; // $( '#n-introduction' ).hide; //

$( '#n-sitesupport' ).hide; // $( '#n-contactpage' ).hide; // $( '#n-aboutsite' ).hide; // $( '#n-contents' ).hide; // $( '#t-userrights' ).hide; //