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 19:24, 19 March 2023 (🗿). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
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':
			$('.mw-wiki-logo').css('background-image', 'url("' + u1F5FF + '")');
			break;
	}
}())