User:Bitomic/global.js

$(function {	window.NoImageLightbox = { novideo: true };	window.FCButtons = [		{			label: 'Create user page',			target: 'User:Bitomic',			content: '\n',			alwaysDisplay: true,			placement: '.global-navigation .wds-dropdown__content .wds-list',			prepend: true		}	];	mw.hook('dev.banners').add(function(BannerNotification) { mw.hook('dev.ct').add(function(addButtons) {			addButtons([ {					click: function { var title = mw.config.get('wgPageName'); navigator.clipboard.writeText(title); new BannerNotification('This page\'s title has been copied to your clipboard:\n' + title, 'confirm').show; },					icon: 'pages', placement: 'page-tools-left', position: -1, text: 'Copy title' },				{					click: function { navigator.clipboard.writeText(window.location.href); new BannerNotification('This page\'s full URL has been copied to your clipboard:\n' + window.location.href, 'confirm').show; },					icon: 'link', placement: 'page-tools-left', position: -1, text: 'Copy full link' }			]);		});	});	importArticles({ type: 'script', articles: [ 'u:dev:MediaWiki:BannerNotification.js', 'u:dev:MediaWiki:CustomTools.js', 'u:dev:MediaWiki:FastCreate.js', 'u:dev:MediaWiki:InterwikisOnSpecialPages.js', 'u:dev:MediaWiki:ModulesLinkToModules.js', 'u:dev:MediaWiki:NoImageLightbox/code.js', 'u:dev:MediaWiki:ThemeToggler.js', 'u:dev:MediaWiki:UCXSearchBar.js', 'u:dev:MediaWiki:WhatLinksHere/code.js', 'u:dev:MediaWiki:WHAM/code.2.js' ]	}); });