“Firefox”的版本间的差异

来自wrc's Wiki
跳到导航 跳到搜索
(建立内容为“== 笔记 == === userChrome.css === <code>userChrome.css</code> 位于 <code>$profile_dir/chrome/userChrome.css</code>,用于定制界面。另外需要在 <c…”的新页面)
 
 
(未显示同一用户的4个中间版本)
第1行: 第1行:
== 笔记 ==
+
[[Category:GUI 程序]]
 +
== userChrome.css ==
 +
 
 +
<code>userChrome.css</code> 的位置为 <code>~/.mozilla/firefox/PROFILE_NAME/chrome/userChrome.css</code>。另外需要在 <code>about:config</code> 中打开 <code>toolkit.legacyUserProfileCustomizations.stylesheets</code> 选项。<ref>[https://www.userchrome.org/how-create-userchrome-css.html How to Create a userChrome.css File]</ref>
 +
 
 +
=== Firefox 89 UI 更改 ===
 +
 
 +
将 Multi-Account Container 的彩色条置于下方 <ref>https://gist.github.com/intrnl/ef2066b9b97b2b6026dab05a6011f8c0</ref>
 +
<syntaxhighlight lang=css>
 +
.tab-context-line {
 +
    background-color: transparent !important;
 +
    background-image: linear-gradient(to right, transparent 10%, var(--identity-tab-color) 10%, var(--identity-tab-color) 90%, transparent 90%);
 +
    margin: -2px !important;
 +
    transform: translateY(32px);
 +
}
 +
</syntaxhighlight>
 +
 
 +
其它设置见 GitHub 仓库 [https://github.com/black7375/firefox-ui-fix black7375/firefox-ui-fix]。
 +
 
 +
=== Tab 上的右键菜单更改 ===
  
=== userChrome.css ===
+
去除菜单中的「新建标签页」和它下面的分隔线(是 Firefox 89 之后加上的一个菜单选项)
 +
<syntaxhighlight lang=css>
 +
#tabContextMenu #context_openANewTab,
 +
#tabContextMenu #context_openANewTab + menuseparator {
 +
    display: none !important;
 +
}
 +
</syntaxhighlight>
  
<code>userChrome.css</code> 位于 <code>$profile_dir/chrome/userChrome.css</code>,用于定制界面。另外需要在 <code>about:config</code> 中打开 <code>toolkit.legacyUserProfileCustomizations.stylesheets</code> 选项。<ref>[https://www.userchrome.org/how-create-userchrome-css.html How to Create a userChrome.css File]
+
* 有关更改菜单选项见 [https://www.reddit.com/r/firefox/comments/7dvtw0/guide_how_to_edit_your_context_menu/ Guide How To Edit Your Context Menu]
 +
* 有关右键菜单的 [[CSS]] 选择器见 [https://github.com/stonecrusher/simpleMenuWizard simpleMenuWizard]
  
 
== 参考资料 ==
 
== 参考资料 ==
  
 
<references />
 
<references />
 
[[Category:GUI 程序]]
 

2021年8月19日 (四) 09:13的最新版本

userChrome.css

userChrome.css 的位置为 ~/.mozilla/firefox/PROFILE_NAME/chrome/userChrome.css。另外需要在 about:config 中打开 toolkit.legacyUserProfileCustomizations.stylesheets 选项。[1]

Firefox 89 UI 更改

将 Multi-Account Container 的彩色条置于下方 [2]

.tab-context-line {
    background-color: transparent !important;
    background-image: linear-gradient(to right, transparent 10%, var(--identity-tab-color) 10%, var(--identity-tab-color) 90%, transparent 90%);
    margin: -2px !important;
    transform: translateY(32px);
}

其它设置见 GitHub 仓库 black7375/firefox-ui-fix

Tab 上的右键菜单更改

去除菜单中的「新建标签页」和它下面的分隔线(是 Firefox 89 之后加上的一个菜单选项)

#tabContextMenu #context_openANewTab,
#tabContextMenu #context_openANewTab + menuseparator {
    display: none !important;
}

参考资料