├── LICENSE.txt ├── README.md └── autocomplete.css /LICENSE.txt: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2016 Nathan Cahill 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## Firefox Autocomplete Prioritize URL 2 | 3 | There's a trend in browser interfaces where URLs are becoming less prominent. Safari iOS is one of the worst offenders, only showing the domain in the URL bar. Firefox 48 took a step in that direction, by rearranging the autocomplete dropdown to show page titles and URLs inline (instead of stacked), with the URLs displayed in a smaller font after the title. Since titles are uneven, the URLs are hard to scan at a glance: 4 | 5 | ![](http://i.imgur.com/b9uICBX.png) 6 | 7 | This can be fixed by moving the URL to the first position with [a bit of CSS](https://cdn.rawgit.com/nathancahill/prioritize-url/master/autocomplete.css): 8 | 9 | ![](http://i.imgur.com/1fRhAzU.png) 10 | 11 | As a bonus, I also tightened up the design a little to use the default 12px font instead of the new, large 14px titles. 12 | 13 | ### Installation 14 | 15 | After installing [Stylish](https://userstyles.org/), install [the stylesheet here](https://userstyles.org/styles/131235/firefox-autocomplete-prioritize-url). Or include the CSS manually in [userChrome.css](http://kb.mozillazine.org/index.php?title=UserChrome.css) (without the `@-moz-document` line). 16 | 17 | ### Issues 18 | 19 | This has only been tested on Firefox 48 for Mac and Firefox 48 on Ubuntu 14.x. Feel free to try it out on other platforms and [open an issue](https://github.com/nathancahill/prioritize-url/issues) for any bugs that you find. 20 | 21 | ### Upstream 22 | 23 | There's an open issue tracking the ability to change the URL position: https://bugzilla.mozilla.org/show_bug.cgi?id=1280700 24 | 25 | ### License 26 | 27 | MIT 28 | -------------------------------------------------------------------------------- /autocomplete.css: -------------------------------------------------------------------------------- 1 | @namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul); 2 | 3 | @-moz-document url(chrome://browser/content/browser.xul) { 4 | richlistbox.autocomplete-richlistbox { 5 | max-height: 310px !important; 6 | } 7 | 8 | .ac-type-icon, .ac-site-icon:not([type="insecureWarning"]) { /* for all awesomebar suggestions icons (except those for contextual feedback on insecure passwords) */ 9 | margin-top: 6px; 10 | } 11 | 12 | .ac-site-icon[type="insecureWarning"], .ac-site-icon[type="login"] { /* for the icons in contextual feedback on insecure passwords */ 13 | margin-top: 0; 14 | } 15 | 16 | /*.ac-title,*/ .ac-separator, .ac-url, .ac-action { 17 | font-size: 14px !important; 18 | } 19 | 20 | .autocomplete-richlistitem[collapsed="true"] { 21 | height: 0 !important; 22 | min-height: 0 !important; 23 | } 24 | 25 | .autocomplete-richlistitem[type="favicon"] .ac-title, 26 | .autocomplete-richlistitem[type="favicon"] .ac-separator, 27 | .autocomplete-richlistitem[type="favicon"] .ac-url, 28 | .autocomplete-richlistitem[type="bookmark"] .ac-title, 29 | .autocomplete-richlistitem[type="bookmark"] .ac-separator, 30 | .autocomplete-richlistitem[type="bookmark"] .ac-url { 31 | height: 16px; 32 | margin-top: 6px; 33 | } 34 | 35 | .autocomplete-richlistitem[type="favicon"], 36 | .autocomplete-richlistitem[type="bookmark"] { 37 | display: flex; 38 | } 39 | 40 | .autocomplete-richlistitem[type="favicon"], 41 | .autocomplete-richlistitem[type="bookmark"] { 42 | display: flex; 43 | } 44 | 45 | .autocomplete-richlistitem[type="favicon"] .ac-title, 46 | .autocomplete-richlistitem[type="bookmark"] .ac-title { 47 | order: 3; 48 | 49 | } 50 | 51 | .ac-title-text {} 52 | .ac-tags {} 53 | 54 | .autocomplete-richlistitem[type="favicon"] .ac-separator, 55 | .autocomplete-richlistitem[type="bookmark"] .ac-separator { 56 | order: 2; 57 | -moz-margin-start: 6px; 58 | -moz-margin-end: 6px; 59 | } 60 | 61 | .autocomplete-richlistitem[type="favicon"] .ac-url, 62 | .autocomplete-richlistitem[type="bookmark"] .ac-url { 63 | order: 1; 64 | } 65 | 66 | .ac-url-text {} 67 | .ac-action {} 68 | 69 | .autocomplete-richlistitem[type="switchtab"] .ac-type-icon, 70 | .autocomplete-richlistitem[type="switchtab"] .ac-site-icon, 71 | .autocomplete-richlistitem[type="searchengine"] .ac-type-icon, 72 | .autocomplete-richlistitem[type="searchengine"] .ac-site-icon, 73 | .autocomplete-richlistitem[actiontype="visiturl"] .ac-type-icon, 74 | .autocomplete-richlistitem[actiontype="visiturl"] .ac-site-icon { 75 | margin-top: 0; 76 | } 77 | 78 | .autocomplete-richlistitem[type="switchtab"] .ac-separator, 79 | .autocomplete-richlistitem[type="switchtab"] .ac-action, 80 | .autocomplete-richlistitem[type="switchtab"] .ac-url, 81 | .autocomplete-richlistitem[type="searchengine"] .ac-separator, 82 | .autocomplete-richlistitem[type="searchengine"] .ac-action, 83 | .autocomplete-richlistitem[type="searchengine"] .ac-url, 84 | .autocomplete-richlistitem[actiontype="visiturl"] .ac-separator, 85 | .autocomplete-richlistitem[actiontype="visiturl"] .ac-action, 86 | .autocomplete-richlistitem[actiontype="visiturl"] .ac-url { 87 | margin-bottom: 0; 88 | } 89 | 90 | .autocomplete-richlistitem[type="favicon"] .ac-url-text, 91 | .autocomplete-richlistitem[type="bookmark"] .ac-url-text{ 92 | max-width: none !important; /* or initial*/ 93 | } 94 | 95 | } 96 | --------------------------------------------------------------------------------