Jump to content

User:MathAfrique/common.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by MathAfrique (talk | contribs) at 16:36, 24 March 2023 (-(πŸ—ΏπŸ–ŒοΈπŸŽ¨)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
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.
// πŸ—Ώ
(function() {
	const u1F5FF = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMTAwcHgiIHdpZHRoPSIxMDBweCI+PGZvcmVpZ25PYmplY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEwMCIgaGVpZ2h0PSIxMDAiIHN0eWxlPSJkaXNwbGF5OiBmbGV4O3RleHQtYWxpZ246IGNlbnRlcjsiPjxzcGFuIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hodG1sIiBzdHlsZT0iZm9udC1zaXplOiAxMDBweDtsaW5lLWhlaWdodDogMWVtO3ZlcnRpY2FsLWFsaWduOiBib3R0b207Ij7wn5e/PC9zcGFuPjwvZm9yZWlnbk9iamVjdD48L3N2Zz4=';
	switch (mw.config.get('skin')) {
		case 'vector-2022':
			$('.mw-logo-icon').attr('src', u1F5FF);
			break;
		case 'vector':
		case 'monobook':
			$('#sitetitle a').css('background-image', 'url("' + u1F5FF + '")');
			break;
		case 'cologneblue':
			$('#sitetitle').css('background-image', 'url("' + u1F5FF + '")');
			$('#sitetitle').css('background-position', 'center left');
			$('#sitetitle').css('background-repeat', 'no-repeat');
			$('#sitetitle').css('background-size', 'contain');
			$('#sitetitle').css('padding-left', '53px');
	}
}())