<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Favicon by Philipp Krenn</title><link>https://xeraa.net/tags/favicon/</link><description>Software development, operations, community, and more</description><language>en-us</language><lastBuildDate>Fri, 31 Jul 2020 00:00:00 +0000</lastBuildDate><atom:link href="https://xeraa.net/tags/favicon/index.xml" rel="self" type="application/rss+xml"/><item><title>Custom Favicons for Production and Order</title><link>https://xeraa.net/blog/2020_custom-favicons-for-production-and-order/</link><pubDate>Fri, 31 Jul 2020 00:00:00 +0000</pubDate><author>Philipp Krenn</author><guid>https://xeraa.net/blog/2020_custom-favicons-for-production-and-order/</guid><description>&lt;p&gt;Favicons — the little pictures in your bookmarks and (way too many) open browser tabs — are great to see what is what quickly. Unless it all looks like this:
&lt;img src="https://xeraa.net/blog/2020_custom-favicons-for-production-and-order/similar.png" alt="Multiple similar favicons" &gt;
&lt;/p&gt;
&lt;p&gt;Those tabs are the &lt;a href="https://cloud.elastic.co"&gt;Elastic Cloud admin UI&lt;/a&gt;, the &lt;a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html"&gt;Elasticsearch documentation&lt;/a&gt;, &lt;a href="https://www.elastic.co"&gt;elastic.co&lt;/a&gt;, Kibana on Elastic Cloud, and Kibana on localhost.&lt;/p&gt;
&lt;h2 id="why-are-all-my-icons-the-same"&gt;Why Are All My Icons the Same? &lt;a href="#why-are-all-my-icons-the-same"&gt;&amp;#35;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;From a company&amp;rsquo;s perspective, it makes sense to stick to a single consistent icon. Especially casual users might have a hard time remembering a set of icons for a single organization. The same goes for the product view — those are all pieces of the Elastic Stack. What started as a UI for Elasticsearch has evolved into more than just the classic visualizations, which are part of a bigger picture. Kibana has become the general window into the Elastic Stack with different solutions and the overall management.
&lt;img src="https://xeraa.net/blog/2020_custom-favicons-for-production-and-order/navigation.png" alt="Kibana navigation in 7.8" &gt;
&lt;/p&gt;
&lt;p&gt;But none of that helps you as a heavy user if you have multiple tabs open and no easy way to tell what was the documentation and what the production or development Kibana instances. It is a bit of a &lt;a href="https://github.com/elastic/kibana/issues/65585"&gt;pain point&lt;/a&gt;, but you can fix it with a little hack.&lt;/p&gt;
&lt;h2 id="tab-modifier-plugin-to-the-rescue"&gt;Tab Modifier Plugin to the Rescue &lt;a href="#tab-modifier-plugin-to-the-rescue"&gt;&amp;#35;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The &lt;a href="https://github.com/sylouuu/chrome-tab-modifier"&gt;Tab Modifier&lt;/a&gt; plugin for Chrome and compatible browsers can replace favicons based on the URL fragment. While it hasn&amp;rsquo;t been updated in over two years, it&amp;rsquo;s doing its job.&lt;/p&gt;
&lt;p&gt;After installing the plugin, you can define its rules. For example, the Elastic documentation is under the URL &lt;code&gt;https://www.elastic.co/guide/&lt;/code&gt;, which you can target with the following rule:
&lt;img src="https://xeraa.net/blog/2020_custom-favicons-for-production-and-order/rule.png" alt="Chrome plugin single rule" &gt;
&lt;/p&gt;
&lt;p&gt;The only thing missing now is the icon. For this scenario, you can download the &lt;a href="https://www.elastic.co/brand"&gt;Elastic brand assets&lt;/a&gt;, which contain both the company as well as the solution and product logos. Picking the intended logo as an SVG (&lt;a href="https://www.chromestatus.com/feature/5180316371124224"&gt;Chrome supports that since version 80&lt;/a&gt;) from the download you can &lt;a href="https://dopiaza.org/tools/datauri/index.php"&gt;convert it to a data URI&lt;/a&gt; and paste the result into the icon field. That&amp;rsquo;s it.&lt;/p&gt;
&lt;p&gt;You need to add three more rules to fix the example from the top:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The Elastic Cloud admin UI starts with &lt;code&gt;https://cloud.elastic.co&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Any Kibana instance on Elastic Cloud contains &lt;code&gt;.found.io:9243/&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Any local Kibana installation contains &lt;code&gt;localhost:5601/&lt;/code&gt; — supporting both HTTP and HTTPS but expecting the default Kibana port (so I won&amp;rsquo;t confuse it with &lt;a href="https://gohugo.io"&gt;Hugo&lt;/a&gt; on &lt;code&gt;localhost:1313/&lt;/code&gt;).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src="https://xeraa.net/blog/2020_custom-favicons-for-production-and-order/rules.png" alt="Chrome plugin rules overview" &gt;
&lt;/p&gt;
&lt;p&gt;Reloading each tab, you will now know what is what right away:
&lt;img src="https://xeraa.net/blog/2020_custom-favicons-for-production-and-order/combined.png" alt="Different favicons based on the domain" &gt;
&lt;/p&gt;
&lt;p&gt;This approach can also &amp;ldquo;hide&amp;rdquo; your Twitter, YouTube,&amp;hellip; tabs at work, which seems to be one of the &lt;a href="https://github.com/sylouuu/chrome-tab-modifier#demo"&gt;intended use-cases&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;PS:&lt;/strong&gt; The favicon behavior will change again in Kibana 7.12.0 based on this &lt;a href="https://github.com/elastic/kibana/pull/87271"&gt;pull request&lt;/a&gt;. Once it has been released, this post will get an update.&lt;/p&gt;</description></item></channel></rss>