{"id":5961,"date":"2012-03-27T19:03:57","date_gmt":"2012-03-27T17:03:57","guid":{"rendered":"http:\/\/blog.ginchen.de\/?p=5961"},"modified":"2012-04-27T19:12:44","modified_gmt":"2012-04-27T17:12:44","slug":"grafik-anzeigen-im-firefox-11","status":"publish","type":"post","link":"http:\/\/blog.ginchen.de\/en\/2012\/03\/27\/grafik-anzeigen-im-firefox-11\/","title":{"rendered":"&#8221;View image&#8221; in Firefox 11"},"content":{"rendered":"<p>On March 13, a new Firefox version came out once again, namely version&nbsp;11. Apart from the fact that I find their insanely small update intervals completely over the top &#8211; to me it seems like version 3.6 was only a few weeks ago &#8211; Mozilla now started to build in new &#8220;Annoyances&#8221; with each release, in a somewhat Windows-like manner. :twisted:<\/p>\r\n\r\n<p>In version&nbsp;11 there is again a totally unnecessary feature: If you look at a picture via right click \u2192 &#8220;View image&#8221;, it is no longer displayed on a white background at the upper left corner of the browser window, but on a dark background and centered in the middle of the window. At first I thought, &#8220;Damn, which of my stupid addons is screwing up here?&#8221; But then I realized that this was, in all seriousness, a native Firefox &#8220;feature&#8221;.<\/p>\r\n\r\n<p>Although I could not for the life of me imagine that the Firefox developers don&#8217;t have anything more important to do than to &#8220;improve&#8221; such details, I tried to stay calm. &#8220;It&#8217;s not that bad&#8221;, I thought. &#8220;Pure matter of habit. I might even like it soon.&#8221; But then I clicked on a transparent PNG!<\/p>\r\n\r\n<figure id=\"attachment_5963\" aria-describedby=\"caption-attachment-5963\" style=\"width: 400px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/blog.ginchen.de\/wp-content\/uploads\/2012\/03\/firefox-image-before.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.ginchen.de\/wp-content\/uploads\/2012\/03\/firefox-image-before-400x241.jpg\" alt=\"Dark image with transparent background in Firefox 11\" title=\"Dark image with transparent background in Firefox 11\" width=\"400\" height=\"241\" class=\"size-medium wp-image-5963\" srcset=\"http:\/\/blog.ginchen.de\/wp-content\/uploads\/2012\/03\/firefox-image-before-400x241.jpg 400w, http:\/\/blog.ginchen.de\/wp-content\/uploads\/2012\/03\/firefox-image-before-200x120.jpg 200w, http:\/\/blog.ginchen.de\/wp-content\/uploads\/2012\/03\/firefox-image-before.jpg 800w\" sizes=\"(max-width: 400px) 100vw, 400px\" \/><\/a><figcaption id=\"caption-attachment-5963\" class=\"wp-caption-text\">Dark image with transparent background in Firefox 11<\/figcaption><\/figure>\r\n\r\n<p>Great, isn&#8217;t it? And so easy to read! ;) But well, I don&#8217;t want to be hard on the programmers. Users wanting to look at a dark image with transparent background is such an unlikely scenario, they really could not have foreseen it! [Irony off]<\/p>\r\n\r\n<h3>Solution: Addon or userContent.css<\/h3>\r\n\r\n<p>Anyway, I quickly looked for a way to get rid of this totally awful behavior. First I stumbled across the addon &#8220;<a rel=\"external\" href=\"https:\/\/addons.mozilla.org\/en-US\/firefox\/addon\/old-default-image-style\/\">Old Default Image Style<\/a>&#8220;, which someone kindly wrote for the sole purpose of undoing this idiocy in a simple and quick way.<br \/>\r\nBut I personally didn&#8217;t even want to install an addon for such a rubbish. So I edited my <code>userContent.css<\/code> instead, so that the image display behaves the way it did before. Here&#8217;s how:<\/p>\r\n\r\n<ol>\r\n<li>click the Firefox button in the upper left, then click &#8220;Help&#8221; \u2192 &#8220;Troubleshooting Information&#8221;<\/li>\r\n<li>the click the button &#8220;View folder&#8221;<\/li>\r\n<li>open the folder &#8220;chrome&#8221;, then open the file <code>userContent.css<\/code> or create it, if it doesn&#8217;t exist<\/li>\r\n<li>add the following code to the file:<\/li>\r\n<\/ol>\r\n\r\n<pre lang=\"css\">\r\n@namespace url(http:\/\/www.w3.org\/1999\/xhtml);\r\n@-moz-document regexp(\"((.*\\\\.(png|apng|jpg|jpeg|gif|tiff|bmp))|(^data:image\\\\\/.*))(\\\\?([^#]*))?(#(.*))?\") {\r\n\r\n\thtml > body {\r\n\t\tbackground-color: #ffffff !important;\r\n\t}\r\n\r\n\thtml > body > img:only-child {\r\n\t\tbox-shadow: none !important;\r\n\t\tmargin: 0 !important;\r\n\t}\r\n\r\n}\r\n<\/pre>\r\n\r\n<p>After saving the file and restarting Firefox, the image display should work as usual again. The code can be customized as desired, of course &#8211; for example, I chose a very light gray (#fafafa) as the background color instead of pure white. And if only the color bothered you, but not the centering of the image, you can simply leave out the line &#8220;margin: 0 !important;&#8221;.<br \/>\r\nAs a result, transparent images will finally be recognizable again! ;)<\/p>\r\n\r\n<figure id=\"attachment_5967\" aria-describedby=\"caption-attachment-5967\" style=\"width: 400px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/blog.ginchen.de\/wp-content\/uploads\/2012\/03\/firefox-image-after.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.ginchen.de\/wp-content\/uploads\/2012\/03\/firefox-image-after-400x241.jpg\" alt=\"Image display after editing userChrome.css\" title=\"Image display after editing userChrome.css\" width=\"400\" height=\"241\" class=\"size-medium wp-image-5967\" srcset=\"http:\/\/blog.ginchen.de\/wp-content\/uploads\/2012\/03\/firefox-image-after-400x241.jpg 400w, http:\/\/blog.ginchen.de\/wp-content\/uploads\/2012\/03\/firefox-image-after-200x120.jpg 200w, http:\/\/blog.ginchen.de\/wp-content\/uploads\/2012\/03\/firefox-image-after.jpg 800w\" sizes=\"(max-width: 400px) 100vw, 400px\" \/><\/a><figcaption id=\"caption-attachment-5967\" class=\"wp-caption-text\">Image display after editing userChrome.css<\/figcaption><\/figure>","protected":false},"excerpt":{"rendered":"On March 13, a new Firefox version came out once again, namely version&nbsp;11. Apart from the fact that I find their insanely small update intervals completely over the top &#8211; to me it seems like version 3.6 was only a few weeks ago &#8211; Mozilla now started to build in new &#8220;Annoyances&#8221; with each release, [&hellip;]","protected":false},"author":2,"featured_media":3402,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[139],"tags":[587,98,53,588,586,589,590],"_links":{"self":[{"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/posts\/5961"}],"collection":[{"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/comments?post=5961"}],"version-history":[{"count":5,"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/posts\/5961\/revisions"}],"predecessor-version":[{"id":5997,"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/posts\/5961\/revisions\/5997"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/media\/3402"}],"wp:attachment":[{"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/media?parent=5961"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/categories?post=5961"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/tags?post=5961"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}