代码之家  ›  专栏  ›  技术社区  ›  SilverLight

新的Firefox更新书签工具栏(显示更多书签)|双空间问题

  •  0
  • SilverLight  · 技术社区  · 3 年前

    我将firefox更新为最新版本:
    Version 92.0
    现在在书签工具栏(显示更多书签)中,我遇到了一个问题,即书签之间的间距增加了一倍。
    堆栈中有这样一个线程:
    new-firefox-update-menu-bookmark-padding-spacing-fix
    但我找不到 userChrome.css 文件位于fiefox配置文件文件夹中。
    如何解决双空间问题?


    试试浏览器。质子上下文菜单。启用>false(禁用上下文菜单的用户界面)

    对我不起作用。


    正如你在下面的图片中看到的,空间比平常更多。

    enter image description here

    这真烦人。
    请指导我在不操纵或创建css新规则的情况下解决这个问题。

    0 回复  |  直到 3 年前
        1
  •  2
  •   myf    3 年前

    你必须自己创建文件(和文件夹),并在about:config中启用设置,告诉Firefox应该应用它。回收howto,以便从中启用和轻松调试 https://twitter.com/myfonj/status/1387584962354982912 :

    如何检查Firefox UI,进行更改,并在重启时保持这些更改,共分9步:

    1.启用用户浏览器。css

    访问about:config,搜索'。样式和切换 toolkit.legacyUserProfileCustomizations.stylesheets 这是真的。

    2.启用UI调试

    打开菜单>更多工具>Web开发者工具>-设置>提前检查 (或按F12,然后按F1)

    • []“启用浏览器chrome和附加调试工具箱”
    • “启用远程调试”

    3.获取Firefox用户的位置 <profile folder>

    查看路径 关于:支持#配置文件行

    4.打开浏览器工具箱

    启动菜单>更多工具>浏览器工具箱 (或按Ctrl+Shift+Alt+I)

    5.允许传入连接。

    6.切换到样式(表)编辑器。

    7.创造新风格

    8.试试canonical * { color: red !important; }

    9.另存为 <profile folder>\chrome\userChrome.css

    (10.)完成。现在,您可以关闭工具箱和Firefox,而不会丢失宝贵的调整。

        2
  •  1
  •   Rich    3 年前

    这个问题有一个Mozilla错误: https://bugzilla.mozilla.org/show_bug.cgi?id=1722368

        3
  •  0
  •   Harvey Wallbanger    2 年前

    修复FireFox中的双间距菜单

    介绍

    FireFox中的下拉菜单在相当长的一段时间内都是双倍间隔的。这可能很烦人,因为它需要更多的滚动来查看菜单内容,而不是必要的。本文档介绍如何覆盖此功能。

    [菜单间距前后][1]

    出身背景

    你可以把这归咎于Mozilla的一些天才,他们认为这是个好主意。在FireFox 91+之前,你一直都有一种方法可以超越这种闪光。这是通过设置

    浏览器质子启用=错误

    在about:config FireFox页面上

    自FireFox 91+;这已经不起作用了。显然,同样的天才又出现了。现在,下面的代码需要添加到userChrome中。css文件位于默认@namespace行下方,需要在about:config页面中设置一个参数。稍后再谈。


        menupopup > menuitem, menupopup > menu {padding-top: 2px !important; padding-bottom: 2px !important;}
    *|*:root {--arrowpanel-menuitem-padding: 2px 8px !important;}
    
    ```
    ________________________________________
    
    FYI: References to ‘Chrome’ you will see throughout this document have nothing to do with Google’s Chrome browser.
    
    The following assumes you will be creating a new userChrome.css file and latching it into FireFox. Modifying an existing userChrome.css file should become self-evident once you navigate to your FireFox profile folder. Three basic steps are required.
    
    •   Creating a directory for the userChrome.css file.
    •   Creating the userChrome.css file
    •   Latching the userChrome.css file into FireFox
    
    Creating a Directory for userChrome.css
    
    The userChrome.css file lives in a directory in your FireFox profile called ‘chrome’ (all lower case). You will need to create this directory if not already there.
    
    In FireFox, click on the hamburger in the upper right corner and open the "Help -> More Troubleshooting Information" page. Then find the button to open your profile folder in the Application Basics Section.
    
     [Ope Profile Folder][2]
    
    Pressing this button will bring up File Explorer opened to your profile folder .
    
    Create a folder and name it ‘chrome’, all lower case, and navigate into it. Leave the File Explorer open for now.
    
     [Profile Folder][3]
    
    Creating userChrome.css
    
    If there is not a userChrome.css file already available; you can use the code provided to create one. When copying the code from above; you need to paste into a simple text editor such as NotePad, and save it from there. This will eliminate any unprintable Word formatting characters that may be in the original.
    
    There is a chance your editor will have a hard time navigating to the ‘chrome’ directory you just created. Especially if ‘AppData’ in the path to your ‘chrome’ folder is hidden. Save the text in your editor using “Save File As”, to a file named ‘userChrome.css’ on your desk top. Case is important.
    
    Now drag ‘userChrome.css’ from the desk top to the open ‘chrome’ folder in File Explorer.
    
    Latching userChrome.css into FireFox
    
    Making FireFox aware of the new userChrome requires a preference to be set. In particular, parameter “toolkit.legacyUserProfileCustomizations.stylesheets” needs to be set to “true”.
    
    To do this enter “about:config” in the address bar, press return, and accept the risks.
    
    Be aware messing with the parameters can be like fooling around with the control rods in a nuclear reactor.  One slip up can result in a meltdown. Don’t mess with any of the other parameters unless you know what you are doing.
    
     [Accept Risk Button][4]
    
    Enter “toolkit.legacy” in the search that comes up and press return.
    
    Now press the double arrow to set this parameter to ‘true’
    [setting parameter][5]
     
    The parameter is set as soon as you change it. There is no “Save” or “Update” button to press.
    
    You are all set. Sign out of FireFox and back in. (I also reset my machine as a placebo measure.) Display your book marks. They should be single spaced.
    
    Nirvana
    
    
      [1]: https://i.stack.imgur.com/NH6Lr.png
      [2]: https://i.stack.imgur.com/obBKD.png
      [3]: https://i.stack.imgur.com/qjJXJ.png
      [4]: https://i.stack.imgur.com/CnUec.png
      [5]: https://i.stack.imgur.com/iap1C.png