AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / computer / 问题 / 1661716
Accepted
J. Mini
J. Mini
Asked: 2021-07-10 14:47:28 +0800 CST2021-07-10 14:47:28 +0800 CST 2021-07-10 14:47:28 +0800 CST

从“编辑书签”菜单编辑书签 URL?

  • 772

当您将页面添加为书签时,在通过单击 URL 栏附近显示的蓝色星形图标打开的菜单中,没有选项可以编辑所述书签的 URL。当您只想对书签进行细微更改时,这很烦人,例如将 example.com/page-1 更改为 example.com/page-2。有没有办法让这个菜单显示你书签的 URL?我觉得 Firefox 曾经能够在更旧的版本中做到这一点。

有问题的菜单

我曾希望 userChrome.css 修复可以解决问题。我在网上找到了以下内容,但似乎没有效果。

/* Add option to edit bookmark URLs under blue star menu */
#editBMPanel_locationRow, #editBMPanel_keywordRow {
  visibility: visible !important;
}

这个问题表达了类似的挫败感,但并不坚持修改我上面截图的菜单。我只想要修改所述菜单的解决方案。

看来我当前的 userChrome.css 文件可能是相关的。这里是

/*@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");*/
@namespace xul "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
@namespace html "http://www.w3.org/1999/xhtml";
.bookmark-item{
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important; 
}
toolbarbutton.bookmark-item .toolbarbutton-text{
    display: none !important;
}
toolbarbutton.bookmark-item .toolbarbutton-icon{
    margin-left: 2px !important;
}
#PlacesToolbarItems > .bookmark-item > .toolbarbutton-icon[label]:not([label=""]) {
    margin-inline-end: 2px !important;
}
toolbarbutton.subviewbutton.subviewbutton-iconic .toolbarbutton-text{
    display: -moz-box !important;
}
/* --- [1] --- */
toolbarbutton.bookmark-item:hover:not(.subviewbutton):not([disabled="true"]):not([open]) .toolbarbutton-text{
    display: -moz-box !important;
}
/* Hide Giant Thumbnail and Favicon */
#editBookmarkPanelImage,
*|div#editBookmarkPanelFaviconContainer {
  display: none !important;
}

/* fix right click menu disappearing on highlighted text */
*#contentAreaContextMenu { margin: 12px 0 0 12px };

/* Add option to edit bookmark URLs under blue star menu */
#editBMPanel_locationRow, #editBMPanel_keywordRow {
  visibility: visible !important;
}
firefox bookmarks
  • 1 1 个回答
  • 97 Views

1 个回答

  • Voted
  1. Best Answer
    anzz1
    2022-03-31T16:00:12+08:002022-03-31T16:00:12+08:00

    为我工作(在最新的 FF 98.0.2 上)。

    您确定将userChrome.css文件放在正确的位置,在您的个人资料文件夹中名为“chrome”的文件夹中。请注意,默认安装中不存在“chrome”文件夹,它仅用于自定义,因此您必须创建它。

    例如:
    C:\Users\YYYY\AppData\Roaming\Mozilla\Firefox\Profiles\XXXXXXXX.default\chrome\userChrome.css

    您可以通过在 URL 栏中键入about:support并单击“配置文件文件夹”类别下的“打开文件夹”来找到正确的文件夹。

    您可能还需要在文件中包含 xul 和 html 标记,如下所示:

    /* userChrome.css */
    
    @namespace xul "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
    @namespace html "http://www.w3.org/1999/xhtml";
    
    /* Add option to edit bookmark URLs under blue star menu */
    #editBMPanel_locationRow {
      visibility: visible !important;
    }
    

    您还需要在 about:config 中设置配置选项
    toolkit.legacyUserProfileCustomizations.stylesheets= true
    以允许 userChrome.css 运行。


    或者只是将此 zip 文件解压缩到您的个人资料文件夹:https ://gist.github.com/anzz1/980102da101505b8bc03e46d54f778fe/archive/3ab4d55882bd0b72828c9d3c880bb7b6ba387cbb.zip

    它包含userChrome.css样式文件和user.js为您设置配置选项。


    编辑 我忘记了最后一部分,它应该解决配置不适用的问题。应用 userChrome.css 和 user.js 后,转到about:support并选择“清除启动缓存”选项。之后,重新启动 Firefox两次。

    • 2

相关问题

  • 在 Firefox 私有模式下使用不同的搜索引擎

  • 在 Firefox 中,为什么这个页面在运行 NoScript 或 uBlock Origin 时以这种方式呈现(noscript 标签的内容被忽略)?

  • 在远程机器上运行 Selenium 脚本

  • 浏览器不会在 Windows 7 64 位操作系统上获得压缩页面

  • 在不同的 Firefox 实例之间共享选项卡

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何减少“vmmem”进程的消耗?

    • 11 个回答
  • Marko Smith

    从 Microsoft Stream 下载视频

    • 4 个回答
  • Marko Smith

    Google Chrome DevTools 无法解析 SourceMap:chrome-extension

    • 6 个回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Martin Hope
    Saaru Lindestøkke 为什么使用 Python 的 tar 库时 tar.xz 文件比 macOS tar 小 15 倍? 2021-03-14 09:37:48 +0800 CST
  • Martin Hope
    CiaranWelsh 如何减少“vmmem”进程的消耗? 2020-06-10 02:06:58 +0800 CST
  • Martin Hope
    Jim Windows 10 搜索未加载,显示空白窗口 2020-02-06 03:28:26 +0800 CST
  • Martin Hope
    v15 为什么通过电缆(同轴电缆)的千兆位/秒 Internet 连接不能像光纤一样提供对称速度? 2020-01-25 08:53:31 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve