{"id":69,"date":"2019-09-03T20:23:24","date_gmt":"2019-09-04T00:23:24","guid":{"rendered":"synetech.ddns.net\/blogs\/synetech\/?p=69"},"modified":"2019-10-02T10:16:55","modified_gmt":"2019-10-02T14:16:55","slug":"fixfirefox","status":"publish","type":"post","link":"https:\/\/synetech.ddns.net\/blogs\/synetech\/fixfirefox\/","title":{"rendered":"Firefox Popup-Window Titlebar Fixer"},"content":{"rendered":"<h1>Firefox Popup-Window Titlebar Fixer<\/h1>\n<h2>Problem<\/h2>\n<p>Firefox has a <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=284824\" target=\"_blank\" title=\"Firefox bug 284824\" rel=\"noopener noreferrer\">&quot;feature&quot;<\/a> whereby popup-windows that have the location-bar or tab-bar removed (minimal chrome), will prepend the page&#8217;s domain-name to the titlebar. This clutters the titlebar and pushes the actual page title off which is extremely inconveneint.<\/p>\n<p>Unfortunately there is no way to turn off this function and worse, the Mozilla developers <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=1531174\" target=\"_blank\" title=\"Firefox bug 1531174\" rel=\"noopener noreferrer\">refuse<\/a> to provide any options for users to control this; they&#8217;ve taken on a very Google attitude and deny users the choice, they decide for us. \ud83d\ude12 This isn&#8217;t good because web-applciations are the standard now and being able to have them run in a popup window outside of the main browser with minimal browser-chrome is essential these days, and actually being able to see the title is necessary (imagine if every window in the OS prepended a long string and pushed the program&#8217;s title out of sight).<\/p>\n<p>We&#8217;ve taken the liberty to write a program to patch Firefox to disable this &quot;feature&quot;. It would have been much better if the developers had provided users with the ability to whitelist sites like you can with cookies and other permissions, or at the very least, provide a global toggle in the <tt>about:config<\/tt> page (there are plenty of advanced options in there that could expose users to security threats, so their excuse that this is for security is specious \u00ac_\u00ac).<\/p>\n<h2>Solution<\/h2>\n<p>The program looks for Firefox installations then patches <tt>browser\\omni.ja<\/tt> to remove (comment out) the JavaScript code that prepends the domain to the titlebar if the window doesn&#8217;t have the location bar shown. It&#8217;s not ideal, and the checksum in the archive no longer matches, but it works just fine and has no other side-effects. You&#8217;ll need to re-patch the file every time Firefox is updated, but it&#8217;s worth it.<\/p>\n<p>(Currently it only runs on Windows, but may be ported to Mac and *nix in the future.)<\/p>\n<h2>Downloads<\/h2>\n<p><a href=\"\/synetech\/fixFirefox.7z\">Download fixFirefox<\/a><\/p>\n<h2>Usage<\/h2>\n<p>Just run the program and it will find and patch all Firefox installations, or you can specify one or more paths where Firefox installations are located to patch those instead (specifying a path will disable automatically searching for Firefox in standard locations; you can run it twice to do both).<\/p>\n<p>Make sure Firefox is not running before running the patch.<\/p>\n<pre>\r\nfixFirefox [[\/? | \/h] | \/u] [path1] [path2] ...\r\n\r\n    -?|-h   Display this usage information\r\n    -u      Undo the patch and restore the 'browser\\omni.ja' file\r\n            if backup file is not found, manually revert the patch\r\n    path... The location of a Firefox installation(s) to patch\r\n            specifying paths prevents searching default locations\r\n<\/pre>\n<h2>Screenshots<\/h2>\n<figure id=\"attachment_71\" class=\"thumbnail wp-caption alignleft\" style=\"width: 310px\"><a href=\"\/blogs\/synetech\/files\/2019\/09\/Firefox-Popup-Windows-with-Domain-Name-Prepended-to-Titlebar.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/blogs\/synetech\/files\/2019\/09\/Firefox-Popup-Windows-with-Domain-Name-Prepended-to-Titlebar-300x117.png\" alt=\"Firefox popup window with domain-name prepended to titlebar\" width=\"300\" height=\"117\" class=\"size-medium wp-image-71\" srcset=\"https:\/\/synetech.ddns.net\/blogs\/synetech\/files\/2019\/09\/Firefox-Popup-Windows-with-Domain-Name-Prepended-to-Titlebar-300x117.png 300w, https:\/\/synetech.ddns.net\/blogs\/synetech\/files\/2019\/09\/Firefox-Popup-Windows-with-Domain-Name-Prepended-to-Titlebar.png 658w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption class=\"caption wp-caption-text\">Firefox popup window with domain-name prepended to titlebar<\/figcaption><\/figure>\n<figure id=\"attachment_72\" class=\"thumbnail wp-caption alignleft\" style=\"width: 310px\"><a href=\"\/blogs\/synetech\/files\/2019\/09\/Firefox-Popup-Windows-without-Domain-Name-Prepended-to-Titlebar.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/blogs\/synetech\/files\/2019\/09\/Firefox-Popup-Windows-without-Domain-Name-Prepended-to-Titlebar-300x117.png\" alt=\"Firefox popup window without domain-name prepended to titlebar\" width=\"300\" height=\"117\" class=\"size-medium wp-image-72\" srcset=\"https:\/\/synetech.ddns.net\/blogs\/synetech\/files\/2019\/09\/Firefox-Popup-Windows-without-Domain-Name-Prepended-to-Titlebar-300x117.png 300w, https:\/\/synetech.ddns.net\/blogs\/synetech\/files\/2019\/09\/Firefox-Popup-Windows-without-Domain-Name-Prepended-to-Titlebar.png 658w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption class=\"caption wp-caption-text\">Firefox popup window without domain-name prepended to titlebar<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Firefox Popup-Window Titlebar Fixer Problem Firefox has a &quot;feature&quot; whereby popup-windows that have the location-bar or tab-bar removed (minimal chrome), will prepend the page&#8217;s domain-name to the titlebar. This clutters the titlebar and pushes the actual page title off which is extremely inconveneint. Unfortunately there is no way to turn off this function and worse, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-69","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/synetech.ddns.net\/blogs\/synetech\/wp-json\/wp\/v2\/posts\/69","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/synetech.ddns.net\/blogs\/synetech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/synetech.ddns.net\/blogs\/synetech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/synetech.ddns.net\/blogs\/synetech\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/synetech.ddns.net\/blogs\/synetech\/wp-json\/wp\/v2\/comments?post=69"}],"version-history":[{"count":0,"href":"https:\/\/synetech.ddns.net\/blogs\/synetech\/wp-json\/wp\/v2\/posts\/69\/revisions"}],"wp:attachment":[{"href":"https:\/\/synetech.ddns.net\/blogs\/synetech\/wp-json\/wp\/v2\/media?parent=69"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/synetech.ddns.net\/blogs\/synetech\/wp-json\/wp\/v2\/categories?post=69"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/synetech.ddns.net\/blogs\/synetech\/wp-json\/wp\/v2\/tags?post=69"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}