Firefox多行书签栏

5
在Firefox(最新版本)中是否有一种方法可以显示多行书签而不是标准的单行?我一直在寻找,但之前适用于旧版本的一个扩展程序(Multiple Rows)现在已经无法使用。

1
你是想要指向一个可以做到这一点的扩展程序,还是需要代码来编写你计划中的扩展程序?这是通过将文件夹放入工具栏(从而获得其内容/书签/文件夹的下拉菜单)来解决的普通方法吗?或者你真的需要更多个人化、单击式的书签? - Makyen
2
我在寻找适用于FF 57的多行标签页,并为您的问题找到了解决方案:您需要从https://github.com/aris-t2/customcssforfx获取文件`@import url(./css/toolbars/bookmarks_toolbar_multiple_lines.css);`,并按照说明操作(这可能会对某些人有所帮助...)。 - Minister
1个回答

4

是的,这非常容易,只需几个步骤即可完成...

  1. Go to the folder .../AppData/Roaming/Mozilla/Firefox/Profiles/YourProfile and create a new folder with the name "chrome" (has nothing to do with chrome browser).

  2. Go into this folder and create a new text file inside it. Name the file "userChrome.css" (Make sure the name is userChrome.css, not userChrome.css.txt).

  3. Write the following code into "userChrome.css":

    @-moz-document url-prefix("chrome://browser/content/browser.xhtml") {
     #PersonalToolbar {
        max-height: calc(20px * 3) !important;
    }
    
    #personal-bookmarks,
    #PlacesToolbar,
    #PlacesToolbar > hbox {
        display: block;
    }
    
    #PersonalToolbar toolbarbutton {
        min-height: 20px !important;
        max-height: 20px !important;
    }
    
    #PlacesToolbarItems {
        max-height:60px!important;
        display: flex!important;
        flex-wrap: wrap!important;
        overflow-x: visible!important;
        overflow-y: auto!important;
    }
    
    #PlacesToolbar,
    #PersonalToolbar > scrollbar {
        -moz-window-dragging: no-drag !important;
    }
    
    #PlacesToolbar #PlacesChevron {
        display: none !important;
    }}
    
  4. Restart your browser.

  5. Type 'about:config' into the address bar and hit enter.

  6. Then type in 'toolkit.legacyUserProfileCustomizations.stylesheets'

  7. Change the default value from 'false' to 'true' by double-clicking on it.

  8. Restart your browser again.

这就是全部了。从现在开始,您在 .css 文件中所做的更改将在 Firefox 中显示。您可以在 .css 文件中尝试不同的 px 值来改变书签行的高度或它们之间的距离...


请使用这个CSS替代品:https://github.com/MrOtherGuy/firefox-csshacks/blob/master/chrome/multi-row_bookmarks.css - Marc Cayuela

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接